Move SharePost modal to new system
This commit is contained in:
parent
2f0939a1c2
commit
cdae685ee1
5 changed files with 39 additions and 57 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue