more corrections

This commit is contained in:
Niels Lyngsø
2024-08-06 10:29:39 +02:00
parent 97d7943ba5
commit beac7794fd
4 changed files with 12 additions and 17 deletions

View File

@@ -1,4 +1,4 @@
import { ManifestDashboard, ManifestModal, ManifestSection } from '@umbraco-cms/backoffice/extension-registry';
import type { ManifestDashboard, ManifestModal } from '@umbraco-cms/backoffice/extension-registry';
// const section : ManifestSection = {
// type: "section",
@@ -10,7 +10,7 @@ import { ManifestDashboard, ManifestModal, ManifestSection } from '@umbraco-cms/
// }
// }
let dashboard : ManifestDashboard = {
const dashboard: ManifestDashboard = {
type: 'dashboard',
name: 'Example Modal Dashboard',
alias: 'example.dashboard.dataset',
@@ -22,7 +22,7 @@ let dashboard : ManifestDashboard = {
},
};
let dashboard2 : ManifestDashboard = {
const dashboard2: ManifestDashboard = {
type: 'dashboard',
name: 'Example Modal Dashboard2',
alias: 'example.dashboard.dataset2',
@@ -34,15 +34,11 @@ let dashboard2 : ManifestDashboard = {
},
};
const modal : ManifestModal = {
type: 'modal',
name: 'Example Modal',
alias: 'example.routed.modal',
element : () => import('./modal/example-modal.element.js'),
const modal: ManifestModal = {
type: 'modal',
name: 'Example Modal',
alias: 'example.routed.modal',
element: () => import('./modal/example-modal.element.js'),
};
export const manifests = [
dashboard,
dashboard2,
modal
];
export const manifests = [dashboard, dashboard2, modal];

View File

@@ -8,7 +8,6 @@ export const EXAMPLE_ROUTED_MODAL = new UmbModalToken<Data, RetData>(
{
modal: {
type: 'dialog',
size: 'full',
},
},
);

View File

@@ -20,11 +20,11 @@ export class UmbExampleModal extends UmbModalBaseElement {
super.connectedCallback();
this._routes = [
{
path: `/overview`,
path: `overview`,
component: () => import('./steps/example-modal-step1.element.js'),
},
{
path: `/details`,
path: `details`,
component: () => import('./steps/example-modal-step2.element.js'),
},
{

View File

@@ -5,7 +5,7 @@ import { UmbModalBaseElement } from '@umbraco-cms/backoffice/modal';
@customElement('umb-example-modal-step2')
export class UmbExampleModalStep2 extends UmbModalBaseElement {
override render() {
return html` <div>example modal step1</div> `;
return html` <div>example modal step2</div> `;
}
static override styles = [UmbTextStyles];