SelectionManager: sets #selectable default to true

This commit is contained in:
leekelleher
2024-03-12 12:42:30 +00:00
parent 3c9009ee27
commit f94055eb05
3 changed files with 1 additions and 4 deletions

View File

@@ -9,7 +9,7 @@ import { UmbArrayState, UmbBooleanState } from '@umbraco-cms/backoffice/observab
* @class UmbSelectionManager
*/
export class UmbSelectionManager<ValueType extends string | null = string | null> extends UmbControllerBase {
#selectable = new UmbBooleanState(false);
#selectable = new UmbBooleanState(true);
public readonly selectable = this.#selectable.asObservable();
#selection = new UmbArrayState(<Array<ValueType>>[], (x) => x);

View File

@@ -10,6 +10,5 @@ export class UmbDocumentCollectionContext extends UmbDefaultCollectionContext<
constructor(host: UmbControllerHost) {
super(host, UMB_DOCUMENT_TABLE_COLLECTION_VIEW_ALIAS);
this.selection.setSelectable(true);
}
}

View File

@@ -9,7 +9,5 @@ export class UmbMediaCollectionContext extends UmbDefaultCollectionContext<
> {
constructor(host: UmbControllerHost) {
super(host, UMB_MEDIA_GRID_COLLECTION_VIEW_ALIAS);
this.selection.setSelectable(true);
}
}