fix manifest and model name

This commit is contained in:
Jesper Møller Jensen
2023-03-20 15:44:31 +13:00
parent 867b0e4641
commit b2a7ec2c0f
2 changed files with 12 additions and 6 deletions

View File

@@ -19,11 +19,13 @@ const workspaceViews: Array<ManifestWorkspaceView> = [
loader: () => import('./views/relation-type/relation-type-workspace-view-relation-type.element'),
weight: 20,
meta: {
workspaces: ['Umb.Workspace.RelationType'],
label: 'RelationType',
pathname: 'relation-type',
icon: 'umb:info',
},
conditions: {
workspaces: ['Umb.Workspace.RelationType'],
},
},
{
type: 'workspaceView',
@@ -32,11 +34,13 @@ const workspaceViews: Array<ManifestWorkspaceView> = [
loader: () => import('./views/relation/workspace-view-relation-type-relation.element'),
weight: 10,
meta: {
workspaces: ['Umb.Workspace.RelationType'],
label: 'Relation',
pathname: 'relation',
icon: 'umb:trafic',
},
conditions: {
workspaces: ['Umb.Workspace.RelationType'],
},
},
];
@@ -46,12 +50,14 @@ const workspaceActions: Array<ManifestWorkspaceAction> = [
alias: 'Umb.WorkspaceAction.RelationType.Save',
name: 'Save Relation Type Workspace Action',
meta: {
workspaces: ['Umb.Workspace.RelationType'],
label: 'Save',
look: 'primary',
color: 'positive',
api: UmbSaveWorkspaceAction,
},
conditions: {
workspaces: ['Umb.Workspace.RelationType'],
},
},
];

View File

@@ -3,7 +3,7 @@ import { css, html } from 'lit';
import { customElement, state } from 'lit/decorators.js';
import { UmbTableColumn, UmbTableConfig } from '../../../../../shared/components/table';
import { UmbLitElement } from '@umbraco-cms/element';
import { RelationModel } from '@umbraco-cms/backend-api';
import { RelationResponseModel } from '@umbraco-cms/backend-api';
@customElement('umb-workspace-view-relation-type-relation')
export class UmbWorkspaceViewRelationTypeRelationElement extends UmbLitElement {
@@ -19,7 +19,7 @@ export class UmbWorkspaceViewRelationTypeRelationElement extends UmbLitElement {
//TODO Use real data
@state()
_relations: Array<RelationModel> = MockData;
_relations: Array<RelationResponseModel> = MockData;
private _tableConfig: UmbTableConfig = {
allowSelection: false,
@@ -78,7 +78,7 @@ export class UmbWorkspaceViewRelationTypeRelationElement extends UmbLitElement {
}
}
const MockData: Array<RelationModel> = [
const MockData: Array<RelationResponseModel> = [
{
parentId: 1,
parentName: 'Parent 1',