2022-01-24 14:10:35 +08:00
|
|
|
import { AvailableActionOptions } from '@nocobase/acl';
|
|
|
|
|
|
|
|
const availableActions: {
|
|
|
|
[key: string]: AvailableActionOptions;
|
|
|
|
} = {
|
|
|
|
create: {
|
2022-02-19 17:14:43 +08:00
|
|
|
displayName: '{{ t("Create") }}',
|
2022-01-24 14:10:35 +08:00
|
|
|
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") }}',
|
2022-01-24 14:10:35 +08:00
|
|
|
type: 'new-data',
|
|
|
|
},
|
|
|
|
view: {
|
2022-02-19 17:14:43 +08:00
|
|
|
displayName: '{{ t("View") }}',
|
2022-01-24 14:10:35 +08:00
|
|
|
type: 'old-data',
|
|
|
|
aliases: ['get', 'list'],
|
|
|
|
},
|
|
|
|
update: {
|
2022-02-19 17:14:43 +08:00
|
|
|
displayName: '{{ t("Edit") }}',
|
2022-01-24 14:10:35 +08:00
|
|
|
type: 'old-data',
|
|
|
|
},
|
|
|
|
destroy: {
|
2022-02-19 17:14:43 +08:00
|
|
|
displayName: '{{ t("Delete") }}',
|
2022-01-24 14:10:35 +08:00
|
|
|
type: 'old-data',
|
|
|
|
},
|
|
|
|
};
|
|
|
|
|
|
|
|
export { availableActions };
|