Update to use new instance API

This commit is contained in:
silverpill 2022-12-22 20:48:35 +00:00
parent ddf23be4bd
commit c7eeb92ba1
2 changed files with 3 additions and 3 deletions

View file

@ -28,7 +28,7 @@ export interface InstanceInfo {
title: string;
short_description: string;
description: string;
description_html: string;
description_source: string;
version: string;
registrations: boolean;
login_message: string;

View file

@ -2,7 +2,7 @@
<sidebar-layout v-if="currentUser">
<template #content v-if="instance">
<h1>{{ instance.title }}</h1>
<div class="description static-text" v-html="instance.description_html"></div>
<div class="description static-text" v-html="instance.description"></div>
<details class="technical-info static-text">
<summary>Technical Info</summary>
mitra version: {{ getMitraVersion(instance.version) }}
@ -14,7 +14,7 @@
<static-page v-else-if="currentUser === null && instance" class="wide">
<template #heading>{{ instance.title }}</template>
<template #text>
<div v-html="instance.description_html"></div>
<div v-html="instance.description"></div>
</template>
</static-page>
</template>