move to folder, fix delete bug
This commit is contained in:
@@ -1,13 +0,0 @@
|
||||
import { manifests as repositoryManifests } from './repository/manifests.js';
|
||||
import type { ManifestModal } from '@umbraco-cms/backoffice/extension-registry';
|
||||
|
||||
const modals: Array<ManifestModal> = [
|
||||
{
|
||||
type: 'modal',
|
||||
alias: 'Umb.Modal.CultureAndHostnames',
|
||||
name: 'Culture And Hostnames Modal',
|
||||
js: () => import('./modal/culture-and-hostnames-modal.element.js'),
|
||||
},
|
||||
];
|
||||
|
||||
export const manifests = [...modals, ...repositoryManifests];
|
||||
@@ -1,7 +1,7 @@
|
||||
import { UMB_DOCUMENT_REPOSITORY_ALIAS } from '../../repository/manifests.js';
|
||||
import { UMB_DOCUMENT_ENTITY_TYPE } from '../../entity.js';
|
||||
import { UmbDocumentCultureAndHostnamesEntityAction } from './culture-and-hostnames.action.js';
|
||||
import { ManifestEntityAction } from '@umbraco-cms/backoffice/extension-registry';
|
||||
import { ManifestEntityAction, ManifestModal } from '@umbraco-cms/backoffice/extension-registry';
|
||||
|
||||
const entityActions: Array<ManifestEntityAction> = [
|
||||
{
|
||||
@@ -19,4 +19,13 @@ const entityActions: Array<ManifestEntityAction> = [
|
||||
},
|
||||
];
|
||||
|
||||
export const manifests = [...entityActions];
|
||||
const manifestModals: Array<ManifestModal> = [
|
||||
{
|
||||
type: 'modal',
|
||||
alias: 'Umb.Modal.CultureAndHostnames',
|
||||
name: 'Culture And Hostnames Modal',
|
||||
js: () => import('./modal/culture-and-hostnames-modal.element.js'),
|
||||
},
|
||||
];
|
||||
|
||||
export const manifests = [...entityActions, ...manifestModals];
|
||||
|
||||
@@ -1,6 +1,11 @@
|
||||
import { html, customElement, state, css, repeat, query } from '@umbraco-cms/backoffice/external/lit';
|
||||
import { UmbTextStyles } from '@umbraco-cms/backoffice/style';
|
||||
import { UmbModalBaseElement } from '@umbraco-cms/backoffice/modal';
|
||||
import {
|
||||
UMB_CONFIRM_MODAL,
|
||||
UMB_MODAL_MANAGER_CONTEXT,
|
||||
UmbModalBaseElement,
|
||||
UmbModalManagerContext,
|
||||
} from '@umbraco-cms/backoffice/modal';
|
||||
import { UUIInputEvent, UUIPopoverContainerElement, UUISelectEvent } from '@umbraco-cms/backoffice/external/uui';
|
||||
import { UmbLanguageRepository } from '@umbraco-cms/backoffice/language';
|
||||
import { DomainPresentationModel, LanguageResponseModel } from '@umbraco-cms/backoffice/backend-api';
|
||||
@@ -87,7 +92,7 @@ export class UmbCultureAndHostnamesModalElement extends UmbModalBaseElement<
|
||||
this._domains = this._domains.map((domain, i) => (index === i ? { ...domain, domainName } : domain));
|
||||
}
|
||||
|
||||
#onRemoveDomain(index: number) {
|
||||
async #onRemoveDomain(index: number) {
|
||||
this._domains = this._domains.filter((d, i) => index !== i);
|
||||
}
|
||||
|
||||
@@ -175,7 +180,7 @@ export class UmbCultureAndHostnamesModalElement extends UmbModalBaseElement<
|
||||
look="outline"
|
||||
color="danger"
|
||||
label=${this.localize.term('assignDomain_remove')}
|
||||
@change=${() => this.#onRemoveDomain(index)}>
|
||||
@click=${() => this.#onRemoveDomain(index)}>
|
||||
<uui-icon name="icon-trash"></uui-icon>
|
||||
</uui-button>
|
||||
`,
|
||||
@@ -0,0 +1 @@
|
||||
export * from './culture-and-hostnames/index.js';
|
||||
@@ -7,7 +7,7 @@ export * from './recycle-bin/index.js';
|
||||
export * from './user-permissions/index.js';
|
||||
export * from './components/index.js';
|
||||
export * from './entity.js';
|
||||
export * from './culture-and-hostnames/index.js';
|
||||
export * from './entity-actions/index.js';
|
||||
|
||||
export { UMB_DOCUMENT_TREE_ALIAS } from './tree/index.js';
|
||||
export { UMB_CONTENT_MENU_ALIAS } from './menu.manifests.js';
|
||||
|
||||
@@ -9,7 +9,6 @@ import { manifests as propertyEditorManifests } from './property-editors/manifes
|
||||
import { manifests as userPermissionManifests } from './user-permissions/manifests.js';
|
||||
import { manifests as recycleBinManifests } from './recycle-bin/manifests.js';
|
||||
import { manifests as trackedReferenceManifests } from './tracked-reference/manifests.js';
|
||||
import { manifests as cultureAndHostnamesManifests } from './culture-and-hostnames/manifests.js';
|
||||
|
||||
export const manifests = [
|
||||
...collectionManifests,
|
||||
@@ -23,5 +22,4 @@ export const manifests = [
|
||||
...userPermissionManifests,
|
||||
...recycleBinManifests,
|
||||
...trackedReferenceManifests,
|
||||
...cultureAndHostnamesManifests,
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user