Skip to content

Commit 2ce6c8f

Browse files
Make data source field mandatory, when supported, in data type details (#20463)
Make data source field mandatory in data type details
1 parent fd1c9f1 commit 2ce6c8f

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

src/Umbraco.Web.UI.Client/src/packages/data-type/workspace/views/details/data-type-details-workspace-view.element.ts

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,13 +109,19 @@ export class UmbDataTypeDetailsWorkspaceViewEditElement extends UmbLitElement im
109109
if (!this._supportsDataSource) return nothing;
110110

111111
return html`
112-
<umb-property-layout label="Data Source">
112+
<umb-property-layout label="Data Source" mandatory>
113113
<umb-input-property-editor-data-source
114114
.value=${this._propertyEditorDataSourceAlias || ''}
115115
.dataSourceTypes=${this._supportedDataSourceTypes}
116116
slot="editor"
117117
max="1"
118-
@change=${this.#onDataSourceChange}></umb-input-property-editor-data-source>
118+
@change=${this.#onDataSourceChange}
119+
required
120+
${umbBindToValidation(
121+
this,
122+
'$.editorDataSourceAlias',
123+
this._propertyEditorDataSourceAlias,
124+
)}></umb-input-property-editor-data-source>
119125
</umb-property-layout>
120126
`;
121127
}

0 commit comments

Comments
 (0)