Updated the label text to use the localization
Aligns across Document Type, Media Type, Member Type and User Groups.
This commit is contained in:
@@ -68,13 +68,14 @@ export class UmbInputWithAliasElement extends UmbFormControlMixin<string, typeof
|
||||
}
|
||||
|
||||
render() {
|
||||
const nameLabel = this.label ?? this.localize.term('placeholders_entername');
|
||||
const aliasLabel = this.localize.term('placeholders_enterAlias');
|
||||
|
||||
return html`
|
||||
<uui-input
|
||||
id="name"
|
||||
placeholder=${this.localize.term('placeholders_entername')}
|
||||
label=${this.label}
|
||||
placeholder=${nameLabel}
|
||||
label=${nameLabel}
|
||||
.value=${this.value}
|
||||
@input=${this.#onNameChange}>
|
||||
<!-- TODO: should use UUI-LOCK-INPUT, but that does not fire an event when its locked/unlocked -->
|
||||
|
||||
@@ -85,7 +85,7 @@ export class UmbDocumentTypeWorkspaceEditorElement extends UmbLitElement {
|
||||
<div id="editors">
|
||||
<umb-input-with-alias
|
||||
id="name"
|
||||
label="name"
|
||||
label=${this.localize.term('placeholders_entername')}
|
||||
value=${this._name}
|
||||
alias=${this._alias}
|
||||
?auto-generate-alias=${this._isNew}
|
||||
|
||||
@@ -89,7 +89,7 @@ export class UmbMediaTypeWorkspaceEditorElement extends UmbLitElement {
|
||||
<div id="editors">
|
||||
<umb-input-with-alias
|
||||
id="name"
|
||||
label="name"
|
||||
label=${this.localize.term('placeholders_entername')}
|
||||
value=${this._name}
|
||||
alias=${this._alias}
|
||||
?auto-generate-alias=${this._isNew}
|
||||
|
||||
@@ -89,7 +89,7 @@ export class UmbMemberTypeWorkspaceEditorElement extends UmbLitElement {
|
||||
<div id="editors">
|
||||
<umb-input-with-alias
|
||||
id="name"
|
||||
label="name"
|
||||
label=${this.localize.term('placeholders_entername')}
|
||||
value=${this._name}
|
||||
alias=${this._alias}
|
||||
?auto-generate-alias=${this._isNew}
|
||||
|
||||
@@ -216,7 +216,7 @@ export class UmbUserGroupWorkspaceEditorElement extends UmbLitElement {
|
||||
|
||||
<umb-input-with-alias
|
||||
id="name"
|
||||
label=${this.localize.term('general_name')}
|
||||
label=${this.localize.term('placeholders_entername')}
|
||||
.value=${this._name}
|
||||
alias=${ifDefined(this._alias)}
|
||||
?auto-generate-alias=${this._isNew}
|
||||
|
||||
Reference in New Issue
Block a user