refac
This commit is contained in:
@@ -681,7 +681,8 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
toast.success($i18n.t('Functions imported successfully'));
|
toast.success($i18n.t('Functions imported successfully'));
|
||||||
functions.set(await getFunctions(localStorage.token));
|
functions = await getFunctionList(localStorage.token);
|
||||||
|
_functions.set(await getFunctions(localStorage.token));
|
||||||
models.set(
|
models.set(
|
||||||
await getModels(
|
await getModels(
|
||||||
localStorage.token,
|
localStorage.token,
|
||||||
@@ -690,6 +691,8 @@
|
|||||||
true
|
true
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
importFiles = null;
|
||||||
|
functionsImportInputElement.value = '';
|
||||||
};
|
};
|
||||||
|
|
||||||
reader.readAsText(importFiles[0]);
|
reader.readAsText(importFiles[0]);
|
||||||
|
|||||||
@@ -615,7 +615,9 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
toast.success($i18n.t('Tool imported successfully'));
|
toast.success($i18n.t('Tool imported successfully'));
|
||||||
tools.set(await getTools(localStorage.token));
|
await init();
|
||||||
|
importFiles = null;
|
||||||
|
toolsImportInputElement.value = '';
|
||||||
};
|
};
|
||||||
|
|
||||||
reader.readAsText(importFiles[0]);
|
reader.readAsText(importFiles[0]);
|
||||||
|
|||||||
Reference in New Issue
Block a user