Move SharePost modal to new system

This commit is contained in:
Paul Frazee
2022-09-02 12:17:33 -05:00
parent 39f13f01bc
commit 4e56f11d06
5 changed files with 39 additions and 57 deletions
+10 -2
View File
@@ -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
}