diff options
author | Paul Frazee <pfrazee@gmail.com> | 2022-10-04 10:53:08 -0500 |
---|---|---|
committer | Paul Frazee <pfrazee@gmail.com> | 2022-10-04 10:53:08 -0500 |
commit | bf39791f011f19c6ff192eb223e15259dc9de53a (patch) | |
tree | 2dd108a78cae54565f18c11aade32cc028bd2e5b /src/state/models/shell.ts | |
parent | c5ab005908457761abe9a1d67d7e1a4a2796a0fe (diff) | |
download | voidsky-bf39791f011f19c6ff192eb223e15259dc9de53a.tar.zst |
Implement a couple missing bits
Diffstat (limited to 'src/state/models/shell.ts')
-rw-r--r-- | src/state/models/shell.ts | 11 |
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 } } |