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:
19
packages/twenty-server/src/modules/view/views.exception.ts
Normal file
19
packages/twenty-server/src/modules/view/views.exception.ts
Normal 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',
|
||||
}
|
||||
Reference in New Issue
Block a user