routing on new language button

This commit is contained in:
Jesper Møller Jensen
2023-01-18 07:38:42 +01:00
parent 4e4f4c97d2
commit 6276e9656b

View File

@@ -35,6 +35,7 @@ export class UmbLanguageRootWorkspaceElement extends UmbLitElement {
}
#add-language {
margin-left: var(--uui-size-space-6);
text-decoration: none;
}
`,
];
@@ -141,7 +142,9 @@ export class UmbLanguageRootWorkspaceElement extends UmbLitElement {
render() {
return html`
<umb-body-layout no-header-background>
<uui-button id="add-language" slot="header" label="Add language" look="outline" color="default"></uui-button>
<a id="add-language" slot="header" href="section/settings/language/edit/new">
<uui-button label="Add language" look="outline" color="default"></uui-button>
</a>
<umb-table .config=${this._tableConfig} .columns=${this._tableColumns} .items=${this._tableItems}></umb-table>
</umb-body-layout>
`;