refac
This commit is contained in:
@@ -1,8 +1,7 @@
|
||||
<script>
|
||||
import { getContext, createEventDispatcher, onMount, tick } from 'svelte';
|
||||
import { getContext, onMount, tick } from 'svelte';
|
||||
import { goto } from '$app/navigation';
|
||||
|
||||
const dispatch = createEventDispatcher();
|
||||
const i18n = getContext('i18n');
|
||||
|
||||
import CodeEditor from '$lib/components/common/CodeEditor.svelte';
|
||||
@@ -15,6 +14,8 @@
|
||||
let loading = false;
|
||||
let showConfirm = false;
|
||||
|
||||
export let onSave = () => {};
|
||||
|
||||
export let edit = false;
|
||||
export let clone = false;
|
||||
|
||||
@@ -256,7 +257,7 @@ class Pipe:
|
||||
|
||||
const saveHandler = async () => {
|
||||
loading = true;
|
||||
dispatch('save', {
|
||||
onSave({
|
||||
id,
|
||||
name,
|
||||
meta,
|
||||
|
||||
Reference in New Issue
Block a user