diff options
author | Paul Frazee <pfrazee@gmail.com> | 2022-12-18 17:28:28 -0600 |
---|---|---|
committer | Paul Frazee <pfrazee@gmail.com> | 2022-12-18 17:28:28 -0600 |
commit | 66a0f8e848342bb5e5ceda36f5095f3ad2b0de29 (patch) | |
tree | cacef9000a8060a2d3ae1e5b8981381314394c5b /src/state/models/shell-ui.ts | |
parent | 36dc1c752556b8413dfb4d8fae6f930888489224 (diff) | |
download | voidsky-66a0f8e848342bb5e5ceda36f5095f3ad2b0de29.tar.zst |
Add WIP 'report post' modal
Diffstat (limited to 'src/state/models/shell-ui.ts')
-rw-r--r-- | src/state/models/shell-ui.ts | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/src/state/models/shell-ui.ts b/src/state/models/shell-ui.ts index fa2e78d5b..d1f458546 100644 --- a/src/state/models/shell-ui.ts +++ b/src/state/models/shell-ui.ts @@ -51,6 +51,14 @@ export class ServerInputModal { } } +export class ReportPostModal { + name = 'report-post' + + constructor(public postUrl: string) { + makeAutoObservable(this) + } +} + interface LightboxModel { canSwipeLeft: boolean canSwipeRight: boolean @@ -127,6 +135,7 @@ export class ShellUiModel { | EditProfileModal | CreateSceneModal | ServerInputModal + | ReportPostModal | undefined isLightboxActive = false activeLightbox: @@ -154,7 +163,8 @@ export class ShellUiModel { | ConfirmModal | EditProfileModal | CreateSceneModal - | ServerInputModal, + | ServerInputModal + | ReportPostModal, ) { this.isModalActive = true this.activeModal = modal |