SelectionManager: sets #selectable default to true
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -10,6 +10,5 @@ export class UmbDocumentCollectionContext extends UmbDefaultCollectionContext<
|
||||
constructor(host: UmbControllerHost) {
|
||||
super(host, UMB_DOCUMENT_TABLE_COLLECTION_VIEW_ALIAS);
|
||||
|
||||
this.selection.setSelectable(true);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -9,7 +9,5 @@ export class UmbMediaCollectionContext extends UmbDefaultCollectionContext<
|
||||
> {
|
||||
constructor(host: UmbControllerHost) {
|
||||
super(host, UMB_MEDIA_GRID_COLLECTION_VIEW_ALIAS);
|
||||
|
||||
this.selection.setSelectable(true);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user