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
This commit is contained in:
Azri Kahar
2022-01-12 23:11:24 +08:00
committed by GitHub
parent d71e5664d8
commit a4f31697f4
4 changed files with 91 additions and 26 deletions

View File

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