2d541f2e32
And disable eslint when building in prod mode Signed-off-by: Thomas Citharel <tcit@tcit.fr>
25 lines
611 B
TypeScript
25 lines
611 B
TypeScript
import { SET_USER_SETTINGS, USER_SETTINGS } from "@/graphql/user";
|
|
import RouteName from "@/router/name";
|
|
import { ICurrentUser } from "@/types/current-user.model";
|
|
import { Component, Vue } from "vue-property-decorator";
|
|
|
|
@Component({
|
|
apollo: {
|
|
loggedUser: USER_SETTINGS,
|
|
},
|
|
})
|
|
export default class Onboarding extends Vue {
|
|
loggedUser!: ICurrentUser;
|
|
|
|
RouteName = RouteName;
|
|
|
|
protected async doUpdateSetting(
|
|
variables: Record<string, unknown>
|
|
): Promise<void> {
|
|
await this.$apollo.mutate<{ setUserSettings: string }>({
|
|
mutation: SET_USER_SETTINGS,
|
|
variables,
|
|
});
|
|
}
|
|
}
|