Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Passes the current state of experimental_features to UserApi #3829

Merged
merged 2 commits into from
Oct 2, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion src/dispatch/static/dispatch/src/components/AppToolbar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@
</v-list-item>
<v-divider />
<v-subheader>Experimental Features</v-subheader>
<v-switch

Check warning on line 116 in src/dispatch/static/dispatch/src/components/AppToolbar.vue

View workflow job for this annotation

GitHub Actions / build

Require self-closing on Vue.js custom components (<v-switch>)
v-model="currentUser().experimental_features"
inset
class="ml-5"
Expand Down Expand Up @@ -196,7 +196,11 @@
UserApi.getUserInfo()
.then((response) => {
let userId = response.data.id
UserApi.update(userId, { id: userId, experimental_features: this.experimental_features })
let newUserExperimentalFeatures = this.currentUser().experimental_features
UserApi.update(userId, {
id: userId,
experimental_features: newUserExperimentalFeatures,
})
})
.catch((error) => {
console.error("Error occurred while updating experimental features: ", error)
Expand Down
Loading