Rework onboarding

Close #435

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel
2020-11-13 13:39:52 +01:00
parent 347448700d
commit 223512f8ae
14 changed files with 308 additions and 100 deletions

View File

@@ -0,0 +1,22 @@
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,
});
}
}