note on missing feature

This commit is contained in:
Niels Lyngsø
2024-02-27 11:06:50 +01:00
parent c8ae36bfbc
commit e5692e14b2
2 changed files with 2 additions and 0 deletions

View File

@@ -28,6 +28,7 @@ export class UmbPublishDocumentEntityAction extends UmbEntityActionBase<UmbDocum
option.variant.state === UmbDocumentVariantState.PUBLISHED_PENDING_CHANGES),
);
// TODO: Missing features to pre-select the variant that fits with the variant-id of the tree/collection? (Again only relevant if the action is executed from a Tree or Collection) [NL]
const selectedVariants = await umbPickDocumentVariantModal(this, { type: 'publish', options });
if (selectedVariants.length) {

View File

@@ -28,6 +28,7 @@ export class UmbUnpublishDocumentEntityAction extends UmbEntityActionBase<UmbDoc
option.variant.state === UmbDocumentVariantState.PUBLISHED_PENDING_CHANGES),
);
// TODO: Missing features to pre-select the variant that fits with the variant-id of the tree/collection? (Again only relevant if the action is executed from a Tree or Collection) [NL]
const selectedVariants = await umbPickDocumentVariantModal(this, { type: 'unpublish', options });
if (selectedVariants.length) {