get alias from manifest

This commit is contained in:
Mads Rasmussen
2023-11-21 21:35:56 +01:00
parent 86dd5c962a
commit 91e46e70de

View File

@@ -17,7 +17,7 @@ export class UmbCollectionAliasCondition extends UmbBaseController implements Um
this.config = args.config;
this.#onChange = args.onChange;
this.consumeContext(UMB_COLLECTION_CONTEXT, (context) => {
this.permitted = context.getAlias() === this.config.match;
this.permitted = context.getManifest()?.alias === this.config.match;
this.#onChange();
});
}