From 43517bb7fc621374b28e0d07e98e6a32846185ff Mon Sep 17 00:00:00 2001 From: Lone Iversen <108085781+loivsen@users.noreply.github.com> Date: Fri, 10 Nov 2023 14:58:09 +0100 Subject: [PATCH] todo --- .../dictionary/dictionary/repository/dictionary.repository.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Umbraco.Web.UI.Client/src/packages/dictionary/dictionary/repository/dictionary.repository.ts b/src/Umbraco.Web.UI.Client/src/packages/dictionary/dictionary/repository/dictionary.repository.ts index 05486b2a8a..ea98f90098 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/dictionary/dictionary/repository/dictionary.repository.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/dictionary/dictionary/repository/dictionary.repository.ts @@ -14,7 +14,8 @@ import { import { UmbNotificationContext, UMB_NOTIFICATION_CONTEXT_TOKEN } from '@umbraco-cms/backoffice/notification'; import type { UmbApi } from '@umbraco-cms/backoffice/extension-api'; -export class UmbDictionaryRepository extends UmbBaseController +export class UmbDictionaryRepository + extends UmbBaseController implements UmbTreeRepository, UmbDetailRepository< @@ -110,6 +111,7 @@ export class UmbDictionaryRepository extends UmbBaseController } async requestItems(ids: Array) { + // TODO: There is a bug where the item gets removed from the tree before we confirm the delete via the modal. It doesn't delete the item unless we confirm the delete. if (!ids) throw new Error('Dictionary Ids are missing'); await this.#init;