mirror of
https://gitee.com/nocobase/nocobase.git
synced 2025-05-04 21:19:27 +08:00
refactor: unavailableActions to sql collection and view collection (#6765)
* refactor: unavailableActions to sql collection and view collection * fix: unavailableActions
This commit is contained in:
parent
24376fd3dd
commit
e2e4c69941
@ -26,7 +26,7 @@ export class ViewCollection extends Collection {
|
||||
return [];
|
||||
}
|
||||
|
||||
return ['create', 'update', 'destroy'];
|
||||
return ['create', 'update', 'destroy', 'importXlsx', 'destroyMany', 'updateMany'];
|
||||
}
|
||||
|
||||
protected sequelizeModelOptions(): any {
|
||||
|
@ -34,7 +34,7 @@ export class PluginActionImportClient extends Plugin {
|
||||
skipScopeCheck: true,
|
||||
},
|
||||
},
|
||||
useVisible: () => useActionAvailable('import'),
|
||||
useVisible: () => useActionAvailable('importXlsx'),
|
||||
};
|
||||
|
||||
const tableActionInitializers = this.app.schemaInitializerManager.get('table:configureActions');
|
||||
|
@ -42,7 +42,7 @@ export class SQLCollection extends Collection {
|
||||
}
|
||||
|
||||
unavailableActions(): Array<string> {
|
||||
return ['create', 'update', 'destroy'];
|
||||
return ['create', 'update', 'destroy', 'importXlsx', 'destroyMany', 'updateMany'];
|
||||
}
|
||||
|
||||
public collectionSchema() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user