2020-10-17 13:12:00 +02:00
|
|
|
<template>
|
2023-04-08 02:01:42 +02:00
|
|
|
<div class="_formRoot">
|
|
|
|
<FormSwitch
|
|
|
|
v-model="$i.injectFeaturedNote"
|
|
|
|
class="_formBlock"
|
|
|
|
@update:modelValue="onChangeInjectFeaturedNote"
|
|
|
|
>
|
|
|
|
{{ i18n.ts.showFeaturedNotesInTimeline }}
|
|
|
|
</FormSwitch>
|
|
|
|
|
|
|
|
<!--
|
2022-05-04 03:12:08 +02:00
|
|
|
<FormSwitch v-model="reportError" class="_formBlock">{{ i18n.ts.sendErrorReports }}<template #caption>{{ i18n.ts.sendErrorReportsDescription }}</template></FormSwitch>
|
2022-03-04 16:35:59 +01:00
|
|
|
-->
|
2021-01-08 13:43:56 +01:00
|
|
|
|
2023-04-08 02:01:42 +02:00
|
|
|
<FormLink to="/settings/account-info" class="_formBlock">{{
|
|
|
|
i18n.ts.accountInfo
|
|
|
|
}}</FormLink>
|
2020-11-25 13:31:34 +01:00
|
|
|
|
2023-04-08 02:01:42 +02:00
|
|
|
<FormLink to="/registry" class="_formBlock"
|
|
|
|
><template #icon><i class="ph-gear-six ph-bold ph-lg"></i></template
|
|
|
|
>{{ i18n.ts.registry }}</FormLink
|
|
|
|
>
|
2022-07-16 16:11:05 +02:00
|
|
|
|
2023-04-08 02:01:42 +02:00
|
|
|
<FormLink to="/settings/delete-account" class="_formBlock"
|
|
|
|
><template #icon><i class="ph-warning ph-bold ph-lg"></i></template
|
|
|
|
>{{ i18n.ts.closeAccount }}</FormLink
|
|
|
|
>
|
|
|
|
</div>
|
2020-10-17 13:12:00 +02:00
|
|
|
</template>
|
|
|
|
|
2022-05-04 03:12:08 +02:00
|
|
|
<script lang="ts" setup>
|
2023-04-08 02:01:42 +02:00
|
|
|
import { computed, defineAsyncComponent } from "vue";
|
|
|
|
import FormSwitch from "@/components/form/switch.vue";
|
|
|
|
import FormLink from "@/components/form/link.vue";
|
|
|
|
import MkButton from "@/components/MkButton.vue";
|
|
|
|
import * as os from "@/os";
|
|
|
|
import { popup } from "@/os";
|
|
|
|
import { defaultStore } from "@/store";
|
|
|
|
import { $i } from "@/account";
|
|
|
|
import { i18n } from "@/i18n";
|
|
|
|
import { definePageMetadata } from "@/scripts/page-metadata";
|
|
|
|
|
|
|
|
const reportError = computed(defaultStore.makeGetterSetter("reportError"));
|
2022-05-04 03:12:08 +02:00
|
|
|
|
|
|
|
function onChangeInjectFeaturedNote(v) {
|
2023-04-08 02:01:42 +02:00
|
|
|
os.api("i/update", {
|
2022-06-20 10:38:49 +02:00
|
|
|
injectFeaturedNote: v,
|
2022-05-04 03:12:08 +02:00
|
|
|
}).then((i) => {
|
|
|
|
$i!.injectFeaturedNote = i.injectFeaturedNote;
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|
2022-06-20 10:38:49 +02:00
|
|
|
const headerActions = $computed(() => []);
|
|
|
|
|
|
|
|
const headerTabs = $computed(() => []);
|
|
|
|
|
|
|
|
definePageMetadata({
|
|
|
|
title: i18n.ts.other,
|
2023-04-08 02:01:42 +02:00
|
|
|
icon: "ph-dots-three-outline ph-bold ph-lg",
|
2020-10-17 13:12:00 +02:00
|
|
|
});
|
|
|
|
</script>
|