This commit is contained in:
Timothy Jaeryang Baek
2025-02-24 23:21:03 -08:00
parent cd3904046d
commit e06111a362
6 changed files with 16 additions and 15 deletions

View File

@@ -1,5 +1,5 @@
<script>
import { getContext, createEventDispatcher, onMount, tick } from 'svelte';
import { getContext, onMount, tick } from 'svelte';
const i18n = getContext('i18n');
@@ -12,8 +12,6 @@
import LockClosed from '$lib/components/icons/LockClosed.svelte';
import AccessControlModal from '../common/AccessControlModal.svelte';
const dispatch = createEventDispatcher();
let formElement = null;
let loading = false;
@@ -23,6 +21,8 @@
export let edit = false;
export let clone = false;
export let onSave = () => {};
export let id = '';
export let name = '';
export let meta = {
@@ -150,7 +150,7 @@ class Tools:
const saveHandler = async () => {
loading = true;
dispatch('save', {
onSave({
id,
name,
meta,