update
This commit is contained in:
@@ -10,7 +10,7 @@ export class UmbPartialViewCreateOptionsModalElement extends UmbModalBaseElement
|
||||
UmbPartialViewCreateOptionsModalData,
|
||||
string
|
||||
> {
|
||||
#createFolderAction?: UmbCreateFolderEntityAction<any>;
|
||||
#createFolderAction?: UmbCreateFolderEntityAction;
|
||||
|
||||
connectedCallback(): void {
|
||||
super.connectedCallback();
|
||||
|
||||
@@ -8,7 +8,7 @@ import { UmbCreateFolderEntityAction } from '@umbraco-cms/backoffice/tree';
|
||||
@customElement('umb-script-create-options-modal')
|
||||
export class UmbScriptCreateOptionsModalElement extends UmbModalBaseElement<UmbScriptCreateOptionsModalData, string> {
|
||||
#modalManager?: UmbModalManagerContext;
|
||||
#createFolderAction?: UmbCreateFolderEntityAction<any>;
|
||||
#createFolderAction?: UmbCreateFolderEntityAction;
|
||||
|
||||
constructor() {
|
||||
super();
|
||||
|
||||
@@ -9,7 +9,7 @@ export class UmbStylesheetCreateOptionsModalElement extends UmbModalBaseElement<
|
||||
UmbStylesheetCreateOptionsModalData,
|
||||
string
|
||||
> {
|
||||
#createFolderAction?: UmbCreateFolderEntityAction<any>;
|
||||
#createFolderAction?: UmbCreateFolderEntityAction;
|
||||
|
||||
connectedCallback(): void {
|
||||
super.connectedCallback();
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
import type { UmbUserGroupDetailRepository } from '../../repository/index.js';
|
||||
import { UmbUserGroupDetailRepository } from '../../repository/index.js';
|
||||
import { html } from '@umbraco-cms/backoffice/external/lit';
|
||||
import { UmbEntityBulkActionBase } from '@umbraco-cms/backoffice/entity-bulk-action';
|
||||
import { umbConfirmModal } from '@umbraco-cms/backoffice/modal';
|
||||
|
||||
export class UmbDeleteUserGroupEntityBulkAction extends UmbEntityBulkActionBase<UmbUserGroupDetailRepository> {
|
||||
export class UmbDeleteUserGroupEntityBulkAction extends UmbEntityBulkActionBase<object> {
|
||||
async execute() {
|
||||
if (this.selection.length === 0) return;
|
||||
|
||||
@@ -16,9 +16,14 @@ export class UmbDeleteUserGroupEntityBulkAction extends UmbEntityBulkActionBase<
|
||||
|
||||
//TODO: How should we handle bulk actions? right now we send a request per item we want to change.
|
||||
//TODO: For now we have to reload the page to see the update
|
||||
|
||||
const repository = new UmbUserGroupDetailRepository(this._host);
|
||||
|
||||
for (let index = 0; index < this.selection.length; index++) {
|
||||
const element = this.selection[index];
|
||||
await this.repository?.delete(element);
|
||||
await repository?.delete(element);
|
||||
}
|
||||
}
|
||||
|
||||
destroy(): void {}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user