diff options
author | Paul Frazee <pfrazee@gmail.com> | 2022-09-02 12:17:33 -0500 |
---|---|---|
committer | Paul Frazee <pfrazee@gmail.com> | 2022-09-02 12:17:33 -0500 |
commit | cdae685ee12a0d7807c911a3116eeafd0a8307f5 (patch) | |
tree | 54af0968ce63a047805a24da032d2c54afc1c9bc /src/state/models/shell.ts | |
parent | 2f0939a1c298a9b7db17005677fc2819b5cb4095 (diff) | |
download | voidsky-cdae685ee12a0d7807c911a3116eeafd0a8307f5.tar.zst |
Move SharePost modal to new system
Diffstat (limited to 'src/state/models/shell.ts')
-rw-r--r-- | src/state/models/shell.ts | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/src/state/models/shell.ts b/src/state/models/shell.ts index 6755393cd..a2e83b5e3 100644 --- a/src/state/models/shell.ts +++ b/src/state/models/shell.ts @@ -8,15 +8,23 @@ export class LinkActionsModel { } } +export class SharePostModel { + name = 'share-post' + + constructor(public href: string) { + makeAutoObservable(this) + } +} + export class ShellModel { isModalActive = false - activeModal: LinkActionsModel | undefined + activeModal: LinkActionsModel | SharePostModel | undefined constructor() { makeAutoObservable(this) } - openModal(modal: LinkActionsModel) { + openModal(modal: LinkActionsModel | SharePostModel) { this.isModalActive = true this.activeModal = modal } |