about summary refs log tree commit diff
path: root/src/state/models/shell.ts
diff options
context:
space:
mode:
authorPaul Frazee <pfrazee@gmail.com>2022-10-04 10:53:08 -0500
committerPaul Frazee <pfrazee@gmail.com>2022-10-04 10:53:08 -0500
commitbf39791f011f19c6ff192eb223e15259dc9de53a (patch)
tree2dd108a78cae54565f18c11aade32cc028bd2e5b /src/state/models/shell.ts
parentc5ab005908457761abe9a1d67d7e1a4a2796a0fe (diff)
downloadvoidsky-bf39791f011f19c6ff192eb223e15259dc9de53a.tar.zst
Implement a couple missing bits
Diffstat (limited to 'src/state/models/shell.ts')
-rw-r--r--src/state/models/shell.ts11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/state/models/shell.ts b/src/state/models/shell.ts
index 80ecbdd48..3a5376421 100644
--- a/src/state/models/shell.ts
+++ b/src/state/models/shell.ts
@@ -9,11 +9,20 @@ export class TabsSelectorModel {
   }
 }
 
+export interface LinkActionsModelOpts {
+  newTab?: boolean
+}
 export class LinkActionsModel {
   name = 'link-actions'
+  newTab: boolean
 
-  constructor(public href: string, public title: string) {
+  constructor(
+    public href: string,
+    public title: string,
+    opts?: LinkActionsModelOpts,
+  ) {
     makeAutoObservable(this)
+    this.newTab = typeof opts?.newTab === 'boolean' ? opts.newTab : true
   }
 }