2020-03-12 14:29:21 +01:00
|
|
|
<template>
|
2020-06-19 19:27:10 +02:00
|
|
|
<div class="section container">
|
2020-02-18 08:57:00 +01:00
|
|
|
<h1 class="title">{{ $t("Settings") }}</h1>
|
|
|
|
<div class="columns">
|
2020-06-25 11:36:35 +02:00
|
|
|
<SettingsMenu class="column is-one-quarter-desktop" />
|
2020-02-18 08:57:00 +01:00
|
|
|
<div class="column">
|
|
|
|
<router-view />
|
|
|
|
</div>
|
|
|
|
</div>
|
2020-06-19 19:27:10 +02:00
|
|
|
</div>
|
2020-03-12 14:29:21 +01:00
|
|
|
</template>
|
|
|
|
<script lang="ts">
|
2020-02-18 08:57:00 +01:00
|
|
|
import { Component, Vue, Watch } from "vue-property-decorator";
|
|
|
|
import { Route } from "vue-router";
|
|
|
|
import SettingsMenu from "../components/Settings/SettingsMenu.vue";
|
|
|
|
import RouteName from "../router/name";
|
|
|
|
import { IPerson, Person } from "../types/actor";
|
|
|
|
import { IDENTITIES } from "../graphql/actor";
|
2020-06-23 10:10:19 +02:00
|
|
|
import { CURRENT_USER_CLIENT } from "../graphql/user";
|
|
|
|
import { ICurrentUser, ICurrentUserRole } from "../types/current-user.model";
|
2020-03-12 14:29:21 +01:00
|
|
|
|
|
|
|
@Component({
|
|
|
|
components: { SettingsMenu },
|
|
|
|
apollo: {
|
|
|
|
identities: {
|
|
|
|
query: IDENTITIES,
|
2020-02-18 08:57:00 +01:00
|
|
|
update: (data) => data.identities.map((identity: IPerson) => new Person(identity)),
|
2020-03-12 14:29:21 +01:00
|
|
|
},
|
2020-06-23 10:10:19 +02:00
|
|
|
currentUser: CURRENT_USER_CLIENT,
|
2020-03-12 14:29:21 +01:00
|
|
|
},
|
|
|
|
})
|
|
|
|
export default class Settings extends Vue {
|
|
|
|
RouteName = RouteName;
|
|
|
|
|
|
|
|
identities!: IPerson[];
|
2020-02-18 08:57:00 +01:00
|
|
|
|
2020-06-23 10:10:19 +02:00
|
|
|
currentUser!: ICurrentUser;
|
2020-03-12 14:29:21 +01:00
|
|
|
}
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<style lang="scss" scoped>
|
2020-02-18 08:57:00 +01:00
|
|
|
aside.section {
|
|
|
|
padding-top: 1rem;
|
|
|
|
}
|
2020-06-17 15:54:24 +02:00
|
|
|
.breadcrumb ul li a {
|
|
|
|
text-decoration: none;
|
|
|
|
}
|
2020-02-18 08:57:00 +01:00
|
|
|
</style>
|