This commit is contained in:
Niels Lyngsø
2024-02-27 12:34:38 +01:00
parent 23affcd075
commit aab05c2977
3 changed files with 3 additions and 0 deletions

View File

@@ -20,6 +20,7 @@ export class UmbPublishDocumentEntityAction extends UmbEntityActionBase<UmbDocum
unique: new UmbVariantId(language.unique, null).toString(),
}));
// TODO: Maybe move this to modal [NL]
// Only display variants that are relevant to pick from, i.e. variants that are draft or published with pending changes:
const options = allOptions.filter(
(option) =>

View File

@@ -20,6 +20,7 @@ export class UmbUnpublishDocumentEntityAction extends UmbEntityActionBase<UmbDoc
unique: new UmbVariantId(language.unique, null).toString(),
}));
// TODO: Maybe move this to modal [NL]
// Only display variants that are relevant to pick from, i.e. variants that are published or published with pending changes:
const options = allOptions.filter(
(option) =>

View File

@@ -30,6 +30,7 @@ export class UmbPickDocumentVariantModalController extends UmbBaseController {
// TODO: What do to when there is no options?
}
// TODO: Maybe move this to modal [NL]
if (selected.length === 0) {
// TODO: Make it possible to use consume context without callback. [NL]
const ctrl = this.consumeContext(UMB_APP_LANGUAGE_CONTEXT, (appLanguageContext) => {});