mirror of
https://codeberg.org/PLG-Development/PLG-MuDiCS
synced 2026-07-06 00:47:09 +00:00
chore(control): prevent closing popups by clicking outside (#20)
Multiple test users closed various popups accidentally by clicking outside and rarely used the feature to close the popup.
This commit is contained in:
@@ -47,7 +47,6 @@
|
||||
snippet: null,
|
||||
title: '',
|
||||
title_class: '!text-xl',
|
||||
closable: true
|
||||
});
|
||||
let remove_display_name = $state('');
|
||||
|
||||
@@ -122,7 +121,6 @@
|
||||
title_icon: Monitor,
|
||||
title_class: '!text-xl',
|
||||
window_class: 'w-3xl',
|
||||
closable: true
|
||||
};
|
||||
};
|
||||
|
||||
@@ -134,7 +132,6 @@
|
||||
title_icon: Settings,
|
||||
title_class: '!text-xl',
|
||||
window_class: 'w-3xl',
|
||||
closable: true
|
||||
};
|
||||
};
|
||||
|
||||
@@ -147,7 +144,6 @@
|
||||
title: 'Bildschirm wirklich löschen?',
|
||||
title_class: 'text-red-400 !text-xl',
|
||||
title_icon: Trash2,
|
||||
closable: true
|
||||
};
|
||||
};
|
||||
|
||||
@@ -166,7 +162,6 @@
|
||||
title: 'Bildschirm bearbeiten',
|
||||
title_icon: Monitor,
|
||||
title_class: '!text-xl',
|
||||
closable: true
|
||||
};
|
||||
};
|
||||
|
||||
@@ -179,7 +174,6 @@
|
||||
title: 'Über PLG MuDiCS',
|
||||
title_icon: Info,
|
||||
title_class: '!text-xl',
|
||||
closable: true
|
||||
};
|
||||
};
|
||||
</script>
|
||||
|
||||
@@ -45,7 +45,6 @@
|
||||
open: false,
|
||||
snippet: null,
|
||||
title: '',
|
||||
closable: true
|
||||
});
|
||||
|
||||
function popup_close_function() {
|
||||
@@ -58,7 +57,6 @@
|
||||
snippet: send_keys_popup,
|
||||
title: 'Tastatur-Eingaben Senden',
|
||||
title_icon: Keyboard,
|
||||
closable: true
|
||||
};
|
||||
};
|
||||
|
||||
@@ -68,7 +66,6 @@
|
||||
snippet: text_popup,
|
||||
title: 'Text Anzeigen',
|
||||
title_icon: TextAlignStart,
|
||||
closable: true,
|
||||
window_class: 'size-full'
|
||||
};
|
||||
};
|
||||
@@ -80,7 +77,6 @@
|
||||
title: 'Webseite Anzeigen',
|
||||
window_class: 'w-xl',
|
||||
title_icon: Globe,
|
||||
closable: true
|
||||
};
|
||||
};
|
||||
|
||||
@@ -104,7 +100,6 @@
|
||||
snippet: ask_shutdown_popup,
|
||||
title: 'Bildschirm Herunterfahren',
|
||||
title_icon: PowerOff,
|
||||
closable: true
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
@@ -67,7 +67,6 @@
|
||||
open: false,
|
||||
snippet: null,
|
||||
title: '',
|
||||
closable: true
|
||||
});
|
||||
|
||||
let file_input: HTMLInputElement;
|
||||
@@ -121,7 +120,6 @@
|
||||
title: `${is_folder ? 'Ordner' : 'Datei'} umbenennen`,
|
||||
title_icon: FolderPlus,
|
||||
snippet_arg: extension,
|
||||
closable: true
|
||||
};
|
||||
};
|
||||
|
||||
@@ -136,7 +134,6 @@
|
||||
snippet: new_folder_popup,
|
||||
title: 'Neuen Ordner erstellen',
|
||||
title_icon: FolderPlus,
|
||||
closable: true
|
||||
};
|
||||
};
|
||||
|
||||
@@ -146,7 +143,6 @@
|
||||
snippet: delete_request_popup,
|
||||
title: `${$selected_file_ids.length} ${$selected_file_ids.length === 1 ? 'Objekt' : 'Objekte'} wirklich löschen?`,
|
||||
title_icon: Trash2,
|
||||
closable: true
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user