2020-11-13 13:39:52 +01:00
|
|
|
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;
|
|
|
|
|
2020-11-30 10:24:11 +01:00
|
|
|
protected async doUpdateSetting(
|
|
|
|
variables: Record<string, unknown>
|
|
|
|
): Promise<void> {
|
2020-11-13 13:39:52 +01:00
|
|
|
await this.$apollo.mutate<{ setUserSettings: string }>({
|
|
|
|
mutation: SET_USER_SETTINGS,
|
|
|
|
variables,
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|