Fixed deprecated API request
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
03223f9391
commit
f4346bbac6
2 changed files with 4 additions and 4 deletions
|
@ -14,8 +14,8 @@ export enum UserRole {
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface User extends Node {
|
export interface User extends Node {
|
||||||
firstname: string;
|
firstName: string;
|
||||||
lastname: string;
|
lastName: string;
|
||||||
name: string;
|
name: string;
|
||||||
username: string;
|
username: string;
|
||||||
email: string;
|
email: string;
|
||||||
|
|
|
@ -30,7 +30,7 @@
|
||||||
const meStore = operationStore<Data>(gql`
|
const meStore = operationStore<Data>(gql`
|
||||||
query Me {
|
query Me {
|
||||||
me {
|
me {
|
||||||
firstname
|
firstName
|
||||||
role
|
role
|
||||||
admin
|
admin
|
||||||
student {
|
student {
|
||||||
|
@ -129,7 +129,7 @@
|
||||||
{:else if $meStore.fetching}
|
{:else if $meStore.fetching}
|
||||||
<p>Laden...</p>
|
<p>Laden...</p>
|
||||||
{:else}
|
{:else}
|
||||||
<h1>Hey {$meStore.data.me.firstname}!</h1>
|
<h1>Hey {$meStore.data.me.firstName}!</h1>
|
||||||
<hr />
|
<hr />
|
||||||
|
|
||||||
{#if $meStore.data.me.role === UserRole.TEACHER}
|
{#if $meStore.data.me.role === UserRole.TEACHER}
|
||||||
|
|
Loading…
Reference in a new issue