fix missing missing toggles
This commit is contained in:
@@ -2,7 +2,7 @@ import { UmbModalToken } from '@umbraco-cms/backoffice/modal';
|
||||
|
||||
export interface UmbEntityUserPermissionSettingsModalData {
|
||||
unique: string;
|
||||
entityType: Array<string>;
|
||||
entityType: string;
|
||||
}
|
||||
|
||||
export type UmbEntityUserPermissionSettingsModalValue = undefined;
|
||||
|
||||
@@ -108,10 +108,11 @@ export class UmbPermissionsModalElement extends UmbLitElement {
|
||||
|
||||
#openUserPermissionsModal(id: string) {
|
||||
if (!id) throw new Error('Could not open permissions modal, no id was provided');
|
||||
if (!this.data?.entityType) throw new Error('Could not open permissions modal, no entity type was provided');
|
||||
|
||||
const modalContext = this.#modalManagerContext?.open(UMB_ENTITY_USER_PERMISSION_MODAL, {
|
||||
unique: id,
|
||||
entityType: ['document'],
|
||||
entityType: this.data.entityType,
|
||||
});
|
||||
|
||||
modalContext?.onSubmit().then((value) => {
|
||||
|
||||
@@ -1,13 +1,4 @@
|
||||
import {
|
||||
html,
|
||||
customElement,
|
||||
property,
|
||||
state,
|
||||
css,
|
||||
ifDefined,
|
||||
nothing,
|
||||
PropertyValueMap,
|
||||
} from '@umbraco-cms/backoffice/external/lit';
|
||||
import { html, customElement, property, state, css, nothing } from '@umbraco-cms/backoffice/external/lit';
|
||||
import { UmbTextStyles } from '@umbraco-cms/backoffice/style';
|
||||
import {
|
||||
UmbEntityUserPermissionSettingsModalData,
|
||||
@@ -15,8 +6,6 @@ import {
|
||||
UmbModalContext,
|
||||
} from '@umbraco-cms/backoffice/modal';
|
||||
import { UmbLitElement } from '@umbraco-cms/internal/lit-element';
|
||||
import { ManifestUserPermission, umbExtensionsRegistry } from '@umbraco-cms/backoffice/extension-registry';
|
||||
import { UUIBooleanInputEvent } from '@umbraco-cms/backoffice/external/uui';
|
||||
import { UmbSelectionChangeEvent } from '@umbraco-cms/backoffice/events';
|
||||
|
||||
@customElement('umb-entity-user-permission-settings-modal')
|
||||
|
||||
Reference in New Issue
Block a user