2020-10-17 06:12:00 -05:00
|
|
|
<template>
|
2021-12-04 21:47:57 -06:00
|
|
|
<div class="_formRoot">
|
2022-05-03 20:12:08 -05:00
|
|
|
<FormSwitch v-model="$i.injectFeaturedNote" class="_formBlock" @update:modelValue="onChangeInjectFeaturedNote">
|
|
|
|
{{ i18n.ts.showFeaturedNotesInTimeline }}
|
2020-11-25 06:31:34 -06:00
|
|
|
</FormSwitch>
|
|
|
|
|
2022-03-04 09:35:59 -06:00
|
|
|
<!--
|
2022-05-03 20:12:08 -05:00
|
|
|
<FormSwitch v-model="reportError" class="_formBlock">{{ i18n.ts.sendErrorReports }}<template #caption>{{ i18n.ts.sendErrorReportsDescription }}</template></FormSwitch>
|
2022-03-04 09:35:59 -06:00
|
|
|
-->
|
2021-01-08 06:43:56 -06:00
|
|
|
|
2022-05-03 20:12:08 -05:00
|
|
|
<FormLink to="/settings/account-info" class="_formBlock">{{ i18n.ts.accountInfo }}</FormLink>
|
2020-11-25 06:31:34 -06:00
|
|
|
|
2022-07-16 09:11:05 -05:00
|
|
|
<FormLink to="/registry" class="_formBlock"><template #icon><i class="fas fa-cogs"></i></template>{{ i18n.ts.registry }}</FormLink>
|
|
|
|
|
2022-05-03 20:12:08 -05:00
|
|
|
<FormLink to="/settings/delete-account" class="_formBlock"><template #icon><i class="fas fa-exclamation-triangle"></i></template>{{ i18n.ts.closeAccount }}</FormLink>
|
2021-12-04 21:47:57 -06:00
|
|
|
</div>
|
2020-10-17 06:12:00 -05:00
|
|
|
</template>
|
|
|
|
|
2022-05-03 20:12:08 -05:00
|
|
|
<script lang="ts" setup>
|
2022-06-20 03:38:49 -05:00
|
|
|
import { computed } from 'vue';
|
2021-11-11 11:02:25 -06:00
|
|
|
import FormSwitch from '@/components/form/switch.vue';
|
2022-01-02 09:41:01 -06:00
|
|
|
import FormLink from '@/components/form/link.vue';
|
2021-11-11 11:02:25 -06:00
|
|
|
import * as os from '@/os';
|
|
|
|
import { defaultStore } from '@/store';
|
2022-05-03 20:12:08 -05:00
|
|
|
import { $i } from '@/account';
|
|
|
|
import { i18n } from '@/i18n';
|
2022-06-20 03:38:49 -05:00
|
|
|
import { definePageMetadata } from '@/scripts/page-metadata';
|
2022-05-03 20:12:08 -05:00
|
|
|
|
|
|
|
const reportError = computed(defaultStore.makeGetterSetter('reportError'));
|
|
|
|
|
|
|
|
function onChangeInjectFeaturedNote(v) {
|
|
|
|
os.api('i/update', {
|
2022-06-20 03:38:49 -05:00
|
|
|
injectFeaturedNote: v,
|
2022-05-03 20:12:08 -05:00
|
|
|
}).then((i) => {
|
|
|
|
$i!.injectFeaturedNote = i.injectFeaturedNote;
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|
2022-06-20 03:38:49 -05:00
|
|
|
const headerActions = $computed(() => []);
|
|
|
|
|
|
|
|
const headerTabs = $computed(() => []);
|
|
|
|
|
|
|
|
definePageMetadata({
|
|
|
|
title: i18n.ts.other,
|
|
|
|
icon: 'fas fa-ellipsis-h',
|
2020-10-17 06:12:00 -05:00
|
|
|
});
|
|
|
|
</script>
|