alert when searching notes from widget, and search is disabled

This commit is contained in:
dakkar 2024-09-21 16:29:23 +01:00
parent bc02b4ae1f
commit 1b58326dd6
2 changed files with 9 additions and 7 deletions

View file

@ -65,13 +65,6 @@ const props = defineProps<{
edit: boolean;
}>();
// This will not be available for now as I don't think this is needed
// const notesSearchAvailable = (($i == null && instance.policies.canSearchNotes) || ($i != null && $i.policies.canSearchNotes));
/* if (!notesSearchAvailable) {
const wid = widgetDefs.findIndex(widget => widget === 'search');
widgetDefs.splice(wid, 1);
} */
const emit = defineEmits<{
(ev: 'updateWidgets', widgets: Widget[]): void;
(ev: 'addWidget', widget: Widget): void;