From b72752e852dcd192a38e6cbdc20847c3706ee32d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jesper=20M=C3=B8ller=20Jensen?= <26099018+JesmoDev@users.noreply.github.com> Date: Wed, 10 May 2023 15:23:39 +1200 Subject: [PATCH] add selection --- .../collection/user-group-collection-view.element.ts | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/Umbraco.Web.UI.Client/src/backoffice/users/user-groups/collection/user-group-collection-view.element.ts b/src/Umbraco.Web.UI.Client/src/backoffice/users/user-groups/collection/user-group-collection-view.element.ts index 2b96082ca8..31f6c80585 100644 --- a/src/Umbraco.Web.UI.Client/src/backoffice/users/user-groups/collection/user-group-collection-view.element.ts +++ b/src/Umbraco.Web.UI.Client/src/backoffice/users/user-groups/collection/user-group-collection-view.element.ts @@ -5,6 +5,7 @@ import { UmbTableColumn, UmbTableConfig, UmbTableDeselectedEvent, + UmbTableElement, UmbTableItem, UmbTableSelectedEvent, } from '../../../shared/components/table'; @@ -100,12 +101,16 @@ export class UmbUserGroupCollectionViewElement extends UmbLitElement { private _handleSelected(event: UmbTableSelectedEvent) { event.stopPropagation(); - console.log('HANDLE SELECT'); + const table = event.target as UmbTableElement; + const selection = table.selection; + this.#collectionContext?.setSelection(selection); } private _handleDeselected(event: UmbTableDeselectedEvent) { event.stopPropagation(); - console.log('HANDLE DESELECT'); + const table = event.target as UmbTableElement; + const selection = table.selection; + this.#collectionContext?.setSelection(selection); } render() {