remove logging, update mock

This commit is contained in:
Nathan Woulfe
2023-04-04 10:43:32 +10:00
parent 70c2f70420
commit 9359d818bb
2 changed files with 1 additions and 4 deletions

View File

@@ -165,7 +165,6 @@ export class UmbDashboardTranslationDictionaryElement extends UmbLitElement {
const result = await this.#repo?.create({ $type: '', name, parentKey: null, translations: [], key: '' });
// TODO => get location header to route to new item
console.log(result);
}
render() {

View File

@@ -51,7 +51,6 @@ export const handlers = [
if (!key) return;
const dictionary = umbDictionaryData.getByKey(key);
console.log(dictionary);
return res(ctx.status(200), ctx.json(dictionary));
}),
@@ -77,7 +76,6 @@ export const handlers = [
const data = await req.json();
if (!data) return;
data.parentKey = data.parentId;
data.icon = 'umb:book-alt';
data.hasChildren = false;
data.type = 'dictionary-item';
@@ -181,7 +179,7 @@ export const handlers = [
if (!file) return;
importResponse.parentKey = req.url.searchParams.get('parentId') ?? null;
importResponse.parentKey = req.url.searchParams.get('parentKey') ?? null;
umbDictionaryData.save(importResponse);
// build the path to the new item => reflects the expected server response