aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/global
diff options
context:
space:
mode:
Diffstat (limited to 'src/client/views/global')
-rw-r--r--src/client/views/global/globalEnums.tsx5
-rw-r--r--src/client/views/global/globalScripts.ts4
2 files changed, 8 insertions, 1 deletions
diff --git a/src/client/views/global/globalEnums.tsx b/src/client/views/global/globalEnums.tsx
index 2cf9e4162..46caa3702 100644
--- a/src/client/views/global/globalEnums.tsx
+++ b/src/client/views/global/globalEnums.tsx
@@ -42,3 +42,8 @@ export enum Borders {
export enum Shadows {
STANDARD_SHADOW = '0px 3px 4px rgba(0, 0, 0, 0.3)',
}
+
+export enum VideoThumbnails {
+ DENSE = 20,
+ SPARSE = 5,
+}
diff --git a/src/client/views/global/globalScripts.ts b/src/client/views/global/globalScripts.ts
index d17d4ff7c..e75b01ab6 100644
--- a/src/client/views/global/globalScripts.ts
+++ b/src/client/views/global/globalScripts.ts
@@ -31,9 +31,11 @@ ScriptingGlobals.add(function IsNoneSelected() {
// toggle: Set overlay status of selected document
// eslint-disable-next-line prefer-arrow-callback
-ScriptingGlobals.add(function setView(view: string) {
+ScriptingGlobals.add(function setView(view: string, getSelected: boolean) {
+ if (getSelected) return SelectionManager.Docs;
const selected = SelectionManager.Docs.lastElement();
selected ? (selected._type_collection = view) : console.log('[FontIconBox.tsx] changeView failed');
+ return undefined;
});
// toggle: Set overlay status of selected document