Removed submitLabel from data-type flow input

as it wasn't being used, (there was no Submit button)
This commit is contained in:
leekelleher
2024-08-07 16:44:02 +01:00
parent 7a83c8e85f
commit 4b5ba56cef
3 changed files with 2 additions and 10 deletions

View File

@@ -52,9 +52,7 @@ export class UmbInputDataTypeElement extends UUIFormControlMixin(UmbLitElement,
new UmbModalRouteRegistrationController(this, UMB_DATA_TYPE_PICKER_FLOW_MODAL)
.onSetup(() => {
return {
data: {
submitLabel: 'Submit',
},
data: {},
value: { selection: this._ids ?? [] },
};
})

View File

@@ -32,7 +32,6 @@ export class UmbDataTypePickerFlowModalElement extends UmbModalBaseElement<
public override set data(value: UmbDataTypePickerFlowModalData) {
super.data = value;
this._submitLabel = this.data?.submitLabel ?? this._submitLabel;
}
@state()
@@ -41,9 +40,6 @@ export class UmbDataTypePickerFlowModalElement extends UmbModalBaseElement<
@state()
private _groupedPropertyEditorUIs: GroupedItems<ManifestPropertyEditorUi> = {};
@state()
private _submitLabel = 'Select';
@state()
private _currentPage = 1;

View File

@@ -1,8 +1,6 @@
import { UmbModalToken } from '@umbraco-cms/backoffice/modal';
export interface UmbDataTypePickerFlowModalData {
submitLabel?: string;
}
export interface UmbDataTypePickerFlowModalData {}
export type UmbDataTypePickerFlowModalValue = {
selection: Array<string>;