remove logging, update mock
This commit is contained in:
@@ -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() {
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user