File tree Expand file tree Collapse file tree 3 files changed +11
-4
lines changed Expand file tree Collapse file tree 3 files changed +11
-4
lines changed Original file line number Diff line number Diff line change @@ -38,8 +38,13 @@ function PluginsHandler(props) {
38
38
39
39
40
40
const openPlugin = ( ) => {
41
- const { MimeType} = item ;
42
-
41
+ let { MimeType} = item ;
42
+ console . log ( "Plugin Item" , item )
43
+ if ( item . IsDir ) {
44
+ // Directory mimetype to be searched
45
+ MimeType = "rclone/dir" ;
46
+ }
47
+ console . log ( "loaded Plugins" , loadedPlugins ) ;
43
48
// const availableTestPlugins = [];
44
49
let availableTestPlugins = getPluginsArray ( loadedTestPlugins ) ;
45
50
availableTestPlugins = filterPluginsByMimeType ( availableTestPlugins , MimeType ) ;
Original file line number Diff line number Diff line change @@ -73,7 +73,8 @@ PluginPlaceHolderCard.propTypes = {
73
73
icon : PropTypes . string ,
74
74
repo : PropTypes . string . isRequired ,
75
75
bugs : PropTypes . string ,
76
- } )
76
+ } ) ,
77
+ getPlugins : PropTypes . func . isRequired
77
78
}
78
79
79
80
export default PluginPlaceHolderCard
Original file line number Diff line number Diff line change @@ -36,6 +36,7 @@ class StoreDashboard extends React.Component {
36
36
37
37
render ( ) {
38
38
const { pluginsList, searchQuery} = this . state ;
39
+ const { getPlugins} = this . props ;
39
40
if ( pluginsList . length <= 0 ) {
40
41
return ( < p > Loading</ p > )
41
42
}
@@ -68,7 +69,7 @@ class StoreDashboard extends React.Component {
68
69
{
69
70
filteredList . map ( ( e ) =>
70
71
< Col lg = { 6 } key = { e . name } >
71
- < PluginPlaceHolderCard plugin = { e } />
72
+ < PluginPlaceHolderCard plugin = { e } getPlugins = { getPlugins } />
72
73
</ Col >
73
74
)
74
75
}
You can’t perform that action at this time.
0 commit comments