tachybase_todo/packages/server/src/acl/available-action.ts
2022-02-19 17:14:43 +08:00

34 lines
650 B
TypeScript

import { AvailableActionOptions } from '@nocobase/acl';
const availableActions: {
[key: string]: AvailableActionOptions;
} = {
create: {
displayName: '{{ t("Create") }}',
type: 'new-data',
},
import: {
displayName: '{{ t("Import") }}',
type: 'new-data',
},
export: {
displayName: '{{ t("Export") }}',
type: 'new-data',
},
view: {
displayName: '{{ t("View") }}',
type: 'old-data',
aliases: ['get', 'list'],
},
update: {
displayName: '{{ t("Edit") }}',
type: 'old-data',
},
destroy: {
displayName: '{{ t("Delete") }}',
type: 'old-data',
},
};
export { availableActions };