mirror of
https://github.com/directus/directus.git
synced 2026-04-25 03:00:53 -04:00
* 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
10 lines
240 B
TypeScript
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);
|
|
}
|