tachybase_todo/packages/server/src/acl/available-action.ts

34 lines
650 B
TypeScript
Raw Normal View History

import { AvailableActionOptions } from '@nocobase/acl';
const availableActions: {
[key: string]: AvailableActionOptions;
} = {
create: {
2022-02-19 17:14:43 +08:00
displayName: '{{ t("Create") }}',
type: 'new-data',
},
import: {
2022-02-19 17:14:43 +08:00
displayName: '{{ t("Import") }}',
2022-02-11 23:59:03 +08:00
type: 'new-data',
},
export: {
2022-02-19 17:14:43 +08:00
displayName: '{{ t("Export") }}',
type: 'new-data',
},
view: {
2022-02-19 17:14:43 +08:00
displayName: '{{ t("View") }}',
type: 'old-data',
aliases: ['get', 'list'],
},
update: {
2022-02-19 17:14:43 +08:00
displayName: '{{ t("Edit") }}',
type: 'old-data',
},
destroy: {
2022-02-19 17:14:43 +08:00
displayName: '{{ t("Delete") }}',
type: 'old-data',
},
};
export { availableActions };