Delete view & copy link (#10760)

adding the delete view and copy link additional menu option

Fixes https://github.com/twentyhq/core-team-issues/issues/480
Fixes https://github.com/twentyhq/core-team-issues/issues/481
This commit is contained in:
Guillim
2025-03-11 15:15:00 +01:00
committed by GitHub
parent 3b40b2d50c
commit 4e44ae59f7
5 changed files with 155 additions and 1 deletions

View File

@ -0,0 +1,19 @@
import { CustomException } from 'src/utils/custom-exception';
export class ViewException extends CustomException {
constructor(message: string, code: ViewExceptionCode) {
super(message, code);
}
}
export enum ViewExceptionCode {
VIEW_NOT_FOUND = 'VIEW_NOT_FOUND',
CANNOT_DELETE_INDEX_VIEW = 'CANNOT_DELETE_INDEX_VIEW',
METHOD_NOT_IMPLEMENTED = 'METHOD_NOT_IMPLEMENTED',
}
export enum ViewExceptionMessage {
VIEW_NOT_FOUND = 'View not found',
CANNOT_DELETE_INDEX_VIEW = 'Cannot delete index view',
METHOD_NOT_IMPLEMENTED = 'Method not implemented',
}