mirror of
https://github.com/hcengineering/platform.git
synced 2025-04-28 11:17:16 +00:00
Reset panel component while new one loads (#2693)
Signed-off-by: Denis Bunakalya <denis.bunakalya@xored.com>
This commit is contained in:
parent
ad4d65a591
commit
3998ad4d55
@ -43,7 +43,7 @@
|
|||||||
direction: 'bottom'
|
direction: 'bottom'
|
||||||
}
|
}
|
||||||
|
|
||||||
let component: AnySvelteComponent
|
let component: AnySvelteComponent | undefined
|
||||||
|
|
||||||
let props: PanelProps | undefined
|
let props: PanelProps | undefined
|
||||||
function _close () {
|
function _close () {
|
||||||
@ -53,6 +53,8 @@
|
|||||||
$: props = $panelstore.panel
|
$: props = $panelstore.panel
|
||||||
|
|
||||||
$: if (props !== undefined) {
|
$: if (props !== undefined) {
|
||||||
|
component = undefined
|
||||||
|
|
||||||
getResource(props.component).then((r) => {
|
getResource(props.component).then((r) => {
|
||||||
component = r
|
component = r
|
||||||
})
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user