Files
directus/app/src/utils/notify.ts
Azri Kahar a4f31697f4 Enable context menu for read-only fields & adds copy/paste options (#10992)
* allow viewing of raw value for read only fields

* add copy value to form-field-menu

* change raw value dialog title when disabled

* fix notify typing

* add paste option & notification for copy/paste
2022-01-12 10:11:24 -05:00

10 lines
240 B
TypeScript

import { useNotificationsStore } from '@/stores/';
import { SnackbarRaw } from '@/types';
let store: any;
export function notify(notification: SnackbarRaw): void {
if (!store) store = useNotificationsStore();
store.add(notification);
}