aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/global
diff options
context:
space:
mode:
authorbobzel <zzzman@gmail.com>2024-05-01 09:47:11 -0400
committerbobzel <zzzman@gmail.com>2024-05-01 09:47:11 -0400
commit76838b7b3842c9b184e6459e29796dd14de37e8d (patch)
treef96cc6db69e72e90179e8b1c3003401146ee3522 /src/client/views/global
parent098deaa68c8b9bb781748fbe0c1bd0104bab3596 (diff)
more cycle import removal. fixed ndollar bugs introduced during lint changes.
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