Skip to content

Commit

Permalink
update saving to be internal
Browse files Browse the repository at this point in the history
  • Loading branch information
corsacca committed Dec 18, 2024
1 parent f6f5d39 commit a668cce
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions dt-core/admin/components/setup-wizard-keys.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,24 +18,24 @@ export class SetupWizardKeys extends OpenLitElement {
step: { type: Object },
firstStep: { type: Boolean },
_options: { type: Object },
saving: { type: Boolean },
_saving: { type: Boolean, attribute: false },
};
}

back() {
this.dispatchEvent(new CustomEvent('back'));
}
async next() {
this.saving = true;
this._saving = true;
await window.dt_admin_shared.update_dt_options(this._options);
this.saving = false;
this._saving = false;

this.dispatchEvent(new CustomEvent('next'));
}

constructor() {
super();
this.saving = false;
this._saving = false;
this._options = {
dt_mapbox_api_key: '',
dt_google_map_key: '',
Expand Down Expand Up @@ -200,7 +200,7 @@ export class SetupWizardKeys extends OpenLitElement {
?hideBack=${this.firstStep}
@next=${this.next}
@back=${this.back}
.saving=${this.saving}
.saving=${this._saving}
></setup-wizard-controls>
</div>
`;
Expand Down

0 comments on commit a668cce

Please sign in to comment.