style: move auto note removal to other settings page
This commit is contained in:
parent
162812d857
commit
138087a19a
@ -36,6 +36,32 @@ SPDX-License-Identifier: AGPL-3.0-only
|
|||||||
</div>
|
</div>
|
||||||
</MkFolder>
|
</MkFolder>
|
||||||
|
|
||||||
|
<MkFolder>
|
||||||
|
<template #label>{{ i18n.ts.autoRemoval }}</template>
|
||||||
|
|
||||||
|
<div class="_gaps_m">
|
||||||
|
<MkSwitch v-model="autoRemoval">{{ i18n.ts._autoRemoval.use }}</MkSwitch>
|
||||||
|
|
||||||
|
<template v-if="autoRemoval">
|
||||||
|
<MkInput v-model="deleteAfter" :type="'number'" :placeholder="'7'" :required="true">
|
||||||
|
<template #label>{{ i18n.ts._autoRemoval.deleteAfter }}</template>
|
||||||
|
<template #caption>{{ i18n.ts._autoRemoval.deleteAfterDescription }}</template>
|
||||||
|
</MkInput>
|
||||||
|
|
||||||
|
<MkSwitch v-model="noPiningNotes">
|
||||||
|
<template #label>{{ i18n.ts._autoRemoval.noPiningNotes }}</template>
|
||||||
|
<template #caption>{{ i18n.ts._autoRemoval.noPiningNotesDescription }}</template>
|
||||||
|
</MkSwitch>
|
||||||
|
|
||||||
|
<MkSwitch v-model="noSpecifiedNotes">
|
||||||
|
<template #label>{{ i18n.ts._autoRemoval.noSpecifiedNotes }}</template>
|
||||||
|
<template #caption>{{ i18n.ts._autoRemoval.noSpecifiedNotesDescription }}</template>
|
||||||
|
</MkSwitch>
|
||||||
|
</template>
|
||||||
|
<MkButton primary class="save" @click="saveRemovalCondition"><i class="ti ti-device-floppy"></i> {{ i18n.ts.save }}</MkButton>
|
||||||
|
</div>
|
||||||
|
</MkFolder>
|
||||||
|
|
||||||
<MkFolder>
|
<MkFolder>
|
||||||
<template #icon><i class="ti ti-alert-triangle"></i></template>
|
<template #icon><i class="ti ti-alert-triangle"></i></template>
|
||||||
<template #label>{{ i18n.ts.closeAccount }}</template>
|
<template #label>{{ i18n.ts.closeAccount }}</template>
|
||||||
@ -94,6 +120,7 @@ import { i18n } from '@/i18n.js';
|
|||||||
import { definePageMetadata } from '@/scripts/page-metadata.js';
|
import { definePageMetadata } from '@/scripts/page-metadata.js';
|
||||||
import { unisonReload } from '@/scripts/unison-reload.js';
|
import { unisonReload } from '@/scripts/unison-reload.js';
|
||||||
import FormSection from '@/components/form/section.vue';
|
import FormSection from '@/components/form/section.vue';
|
||||||
|
import MkInput from "@/components/MkInput.vue";
|
||||||
|
|
||||||
const $i = signinRequired();
|
const $i = signinRequired();
|
||||||
|
|
||||||
|
@ -67,32 +67,6 @@ SPDX-License-Identifier: AGPL-3.0-only
|
|||||||
<MkSwitch v-model="keepCw">{{ i18n.ts.keepCw }}</MkSwitch>
|
<MkSwitch v-model="keepCw">{{ i18n.ts.keepCw }}</MkSwitch>
|
||||||
</div>
|
</div>
|
||||||
</FormSection>
|
</FormSection>
|
||||||
|
|
||||||
<MkFolder>
|
|
||||||
<template #label>{{ i18n.ts.autoRemoval }}</template>
|
|
||||||
|
|
||||||
<div class="_gaps_m">
|
|
||||||
<MkSwitch v-model="autoRemoval">{{ i18n.ts._autoRemoval.use }}</MkSwitch>
|
|
||||||
|
|
||||||
<template v-if="autoRemoval">
|
|
||||||
<MkInput v-model="deleteAfter" :type="'number'" :placeholder="'7'" :required="true">
|
|
||||||
<template #label>{{ i18n.ts._autoRemoval.deleteAfter }}</template>
|
|
||||||
<template #caption>{{ i18n.ts._autoRemoval.deleteAfterDescription }}</template>
|
|
||||||
</MkInput>
|
|
||||||
|
|
||||||
<MkSwitch v-model="noPiningNotes">
|
|
||||||
<template #label>{{ i18n.ts._autoRemoval.noPiningNotes }}</template>
|
|
||||||
<template #caption>{{ i18n.ts._autoRemoval.noPiningNotesDescription }}</template>
|
|
||||||
</MkSwitch>
|
|
||||||
|
|
||||||
<MkSwitch v-model="noSpecifiedNotes">
|
|
||||||
<template #label>{{ i18n.ts._autoRemoval.noSpecifiedNotes }}</template>
|
|
||||||
<template #caption>{{ i18n.ts._autoRemoval.noSpecifiedNotesDescription }}</template>
|
|
||||||
</MkSwitch>
|
|
||||||
</template>
|
|
||||||
<MkButton primary class="save" @click="saveRemovalCondition"><i class="ti ti-device-floppy"></i> {{ i18n.ts.save }}</MkButton>
|
|
||||||
</div>
|
|
||||||
</MkFolder>
|
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user