refac: channel modal
This commit is contained in:
1 parent
1c78594379
commit
700894a13d
1 file changed
+12
-2
@@ -44,8 +44,12 @@
|
|||||||
accessControl = channel.access_control;
|
accessControl = channel.access_control;
|
||||||
};
|
};
|
||||||
|
|
||||||
$: if (channel) {
|
$: if (show) {
|
||||||
init();
|
if (channel) {
|
||||||
|
init();
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
resetHandler();
|
||||||
}
|
}
|
||||||
|
|
||||||
let showDeleteConfirmDialog = false;
|
let showDeleteConfirmDialog = false;
|
||||||
@@ -68,6 +72,12 @@
|
|||||||
|
|
||||||
show = false;
|
show = false;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
const resetHandler = () => {
|
||||||
|
name = '';
|
||||||
|
accessControl = {};
|
||||||
|
loading = false;
|
||||||
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<Modal size="sm" bind:show>
|
<Modal size="sm" bind:show>
|
||||||
|
|||||||
Reference in new issue
Block a user