fix manifest and model name
This commit is contained in:
@@ -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'],
|
||||
},
|
||||
},
|
||||
];
|
||||
|
||||
|
||||
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user