Skip to content

Commit

Permalink
Frontend: deal with timing issue when loading settings from the backend
Browse files Browse the repository at this point in the history
  • Loading branch information
Williangalvani committed Jan 10, 2025
1 parent daa7f3e commit 599122b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions core/frontend/src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -483,6 +483,9 @@ export default Vue.extend({
build_clicks: 0,
}),
computed: {
settings_selected_widgets(): string[] {
return settings.user_top_widgets
},
isBehindWebProxy(): boolean {
return window.location.host.endsWith('.cloud')
},
Expand Down Expand Up @@ -700,6 +703,9 @@ export default Vue.extend({
selected_widgets() {
settings.user_top_widgets = this.selected_widgets
},
settings_selected_widgets() {
this.selected_widgets = this.settings_selected_widgets
},
},
async mounted() {
Expand Down

0 comments on commit 599122b

Please sign in to comment.