refac: channel modal

This commit is contained in:
Timothy Jaeryang Baek
2025-09-18 18:02:35 -05:00
parent 1c78594379
commit 700894a13d

View File

@@ -44,8 +44,12 @@
accessControl = channel.access_control;
};
$: if (channel) {
init();
$: if (show) {
if (channel) {
init();
}
} else {
resetHandler();
}
let showDeleteConfirmDialog = false;
@@ -68,6 +72,12 @@
show = false;
};
const resetHandler = () => {
name = '';
accessControl = {};
loading = false;
};
</script>
<Modal size="sm" bind:show>