initial work of entity-actions-bundle

This commit is contained in:
Niels Lyngsø
2023-05-24 10:44:20 +02:00
parent cb49815962
commit de7842dfca
7 changed files with 108 additions and 77 deletions

View File

@@ -20,14 +20,13 @@ export class UmbSectionSidebarContext {
this.#host = host;
}
toggleContextMenu(entityType: string, unique: string | null | undefined, headline: string) {
console.log('open for ', entityType, unique, headline);
toggleContextMenu(entityType: string, unique: string | null | undefined, headline: string | undefined) {
this.openContextMenu(entityType, unique, headline);
}
// TODO: we wont get notified about tree item name changes because we don't have a subscription
// we need to figure out how we best can handle this when we only know the entity and unique id
openContextMenu(entityType: string, unique: string | null | undefined, headline: string) {
openContextMenu(entityType: string, unique: string | null | undefined, headline: string | undefined) {
this.#entityType.next(entityType);
this.#unique.next(unique);
this.#headline.next(headline);