|
|
@ -34,6 +34,7 @@ export class RemixAppManager extends PluginManager { |
|
|
|
|
|
|
|
|
|
|
|
async canDeactivatePlugin (from, to) { |
|
|
|
async canDeactivatePlugin (from, to) { |
|
|
|
console.log('canDeactivatePlugin', from, to) |
|
|
|
console.log('canDeactivatePlugin', from, to) |
|
|
|
|
|
|
|
if (requiredModules.includes(name)) return false |
|
|
|
return from.name === 'manager' |
|
|
|
return from.name === 'manager' |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -84,11 +85,6 @@ export class RemixAppManager extends PluginManager { |
|
|
|
this.event.emit('ensureDeactivated', apiName) |
|
|
|
this.event.emit('ensureDeactivated', apiName) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
deactivatePlugin (name) { |
|
|
|
|
|
|
|
if (requiredModules.includes(name)) return |
|
|
|
|
|
|
|
super.deactivatePlugin(name) |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
isRequired (name) { |
|
|
|
isRequired (name) { |
|
|
|
return requiredModules.includes(name) |
|
|
|
return requiredModules.includes(name) |
|
|
|
} |
|
|
|
} |
|
|
|