Skip to content

Commit

Permalink
fix(ui5-view-settings-dialog): improve settings management (#7769)
Browse files Browse the repository at this point in the history
fixes: #7752
  • Loading branch information
tsanislavgatev committed Oct 31, 2023
1 parent 629e4e6 commit 33cdb86
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions packages/fiori/src/ViewSettingsDialog.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import type I18nBundle from "@ui5/webcomponents-base/dist/i18nBundle.js";
import { isPhone } from "@ui5/webcomponents-base/dist/Device.js";
import litRender from "@ui5/webcomponents-base/dist/renderer/LitRenderer.js";
import UI5Element from "@ui5/webcomponents-base/dist/UI5Element.js";
import type { ChangeInfo } from "@ui5/webcomponents-base/dist/UI5Element.js";
import Dialog from "@ui5/webcomponents/dist/Dialog.js";
import Button from "@ui5/webcomponents/dist/Button.js";
import Label from "@ui5/webcomponents/dist/Label.js";
Expand Down Expand Up @@ -290,6 +291,12 @@ class ViewSettingsDialog extends UI5Element {
}
}

onInvalidation(changeInfo: ChangeInfo) {
if (changeInfo.type === "slot") {
this._confirmedSettings = this._settings;
}
}

_setAdditionalTexts() {
// Add the additional text to the filter options
this.filterItems.forEach((filter, index) => {
Expand Down

0 comments on commit 33cdb86

Please sign in to comment.