other plugins concerned onedrive,dropbox,instagram,google-drive
@@ -35,16 +35,6 @@ module.exports = class Dropbox extends Plugin {
this.view = new ProviderViews(this, {
provider: this.provider
})
- // Set default state for Dropbox
- this.setPluginState({
- authenticated: false,
- files: [],
- folders: [],
- directories: [],
- activeRow: -1,
- filterInput: '',
- isSearchVisible: false
- })
const target = this.opts.target
if (target) {
@@ -35,16 +35,6 @@ module.exports = class Facebook extends Plugin {
@@ -37,19 +37,6 @@ module.exports = class GoogleDrive extends Plugin {
this.view = new DriveProviderViews(this, {
- // Set default state for Google Drive
- isSearchVisible: false,
- hasTeamDrives: false,
- teamDrives: [],
- teamDriveId: ''
@@ -40,16 +40,6 @@ module.exports = class Instagram extends Plugin {
showFilter: false,
showBreadcrumbs: false
- // Set default state for Instagram
@@ -38,16 +38,6 @@ module.exports = class OneDrive extends Plugin {
@@ -85,6 +85,17 @@ module.exports = class ProviderView {
this.render = this.render.bind(this)
this.clearSelection()
+
+ // Set default state for the plugin
+ this.plugin.setPluginState({
+ authenticated: false,
+ files: [],
+ folders: [],
+ directories: [],
+ activeRow: -1,
+ filterInput: '',
+ isSearchVisible: false
+ })
}
tearDown () {