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-11-27 19:27:44 +01:00
|
|
|
import { Component, Vue } from "vue-property-decorator";
|
2020-02-18 08:57:00 +01:00
|
|
|
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";
|
2020-11-27 19:27:44 +01:00
|
|
|
import { ICurrentUser } from "../types/current-user.model";
|
2020-03-12 14:29:21 +01:00
|
|
|
|
|
|
|
@Component({
|
|
|
|
components: { SettingsMenu },
|
|
|
|
apollo: {
|
|
|
|
identities: {
|
|
|
|
query: IDENTITIES,
|
2020-11-30 10:24:11 +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
|
|
|
},
|
2021-05-25 16:21:29 +02:00
|
|
|
metaInfo() {
|
|
|
|
return {
|
|
|
|
title: this.$t("Settings") as string,
|
|
|
|
};
|
|
|
|
},
|
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>
|