add checkmarks instead of true false
This commit is contained in:
committed by
Jacob Overgaard
parent
ed124db4a0
commit
6d5537e75d
@@ -0,0 +1,21 @@
|
||||
import { UmbTextStyles } from '@umbraco-cms/backoffice/style';
|
||||
import { css, html, nothing, customElement, property } from '@umbraco-cms/backoffice/external/lit';
|
||||
import { UmbLitElement } from '@umbraco-cms/internal/lit-element';
|
||||
|
||||
@customElement('umb-language-root-table-boolean-column-layout')
|
||||
export class UmbLanguageRootTableBooleanColumnLayoutElement extends UmbLitElement {
|
||||
@property({ attribute: false })
|
||||
value = false;
|
||||
|
||||
render() {
|
||||
return this.value ? html`<uui-icon name="icon-check"></uui-icon>` : nothing;
|
||||
}
|
||||
|
||||
static styles = [UmbTextStyles, css``];
|
||||
}
|
||||
|
||||
declare global {
|
||||
interface HTMLElementTagNameMap {
|
||||
'umb-language-root-table-boolean-column-layout': UmbLanguageRootTableBooleanColumnLayoutElement;
|
||||
}
|
||||
}
|
||||
@@ -7,6 +7,7 @@ import { LanguageResponseModel } from '@umbraco-cms/backoffice/backend-api';
|
||||
|
||||
import './components/language-root-table-delete-column-layout.element.js';
|
||||
import './components/language-root-table-name-column-layout.element.js';
|
||||
import './components/language-root-table-boolean-column-layout.element.js';
|
||||
|
||||
@customElement('umb-language-root-workspace')
|
||||
export class UmbLanguageRootWorkspaceElement extends UmbLitElement {
|
||||
@@ -29,10 +30,12 @@ export class UmbLanguageRootWorkspaceElement extends UmbLitElement {
|
||||
{
|
||||
name: 'Default',
|
||||
alias: 'defaultLanguage',
|
||||
elementName: 'umb-language-root-table-boolean-column-layout',
|
||||
},
|
||||
{
|
||||
name: 'Mandatory',
|
||||
alias: 'mandatoryLanguage',
|
||||
elementName: 'umb-language-root-table-boolean-column-layout',
|
||||
},
|
||||
{
|
||||
name: 'Fallback',
|
||||
|
||||
Reference in New Issue
Block a user