mirror of
https://activitypub.software/TransFem-org/Sharkey.git
synced 2024-12-28 21:28:19 +01:00
merge: Add locales and new navbar entry (!815)
View MR for information: https://activitypub.software/TransFem-org/Sharkey/-/merge_requests/815 Approved-by: dakkar <dakkar@thenautilus.net> Approved-by: Hazelnoot <acomputerdog@gmail.com>
This commit is contained in:
commit
dfcba23e0b
5 changed files with 25 additions and 3 deletions
8
locales/index.d.ts
vendored
8
locales/index.d.ts
vendored
|
@ -11464,6 +11464,14 @@ export interface Locale extends ILocale {
|
|||
* List of scheduled notes
|
||||
*/
|
||||
"schedulePostList": string;
|
||||
/**
|
||||
* Post on
|
||||
*/
|
||||
"postOn": string;
|
||||
/**
|
||||
* Scheduled Notes
|
||||
*/
|
||||
"scheduledNotes": string;
|
||||
}
|
||||
declare const locales: {
|
||||
[lang: string]: Locale;
|
||||
|
|
|
@ -16,7 +16,7 @@ SPDX-License-Identifier: AGPL-3.0-only
|
|||
<div v-show="note.cw == null || showContent">
|
||||
<MkSubNoteContent :hideFiles="hideFiles" :class="$style.text" :note="note" :expandAllCws="props.expandAllCws"/>
|
||||
<div v-if="note.isSchedule" style="margin-top: 10px;">
|
||||
<MkButton :class="$style.button" inline @click.stop.prevent="editScheduleNote()"><i class="ti ti-eraser"></i> {{ i18n.ts.deleteAndEdit }}</MkButton>
|
||||
<MkButton :class="$style.button" inline @click.stop.prevent="editScheduleNote()"><i class="ti ti-eraser"></i> {{ i18n.ts.edit }}</MkButton>
|
||||
<MkButton :class="$style.button" inline danger @click.stop.prevent="deleteScheduleNote()"><i class="ti ti-trash"></i> {{ i18n.ts.delete }}</MkButton>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -7,7 +7,7 @@ SPDX-License-Identifier: AGPL-3.0-only
|
|||
<div style="padding: 8px 16px;">
|
||||
<section>
|
||||
<MkInput v-model="atDate" small type="date" class="input">
|
||||
<template #label>{{ i18n.ts._poll.deadlineDate }}</template>
|
||||
<template #label>{{ i18n.ts.postOn }}</template>
|
||||
</MkInput>
|
||||
<MkInput v-model="atTime" small type="time" class="input">
|
||||
<template #label>{{ i18n.ts._poll.deadlineTime }}</template>
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
* SPDX-License-Identifier: AGPL-3.0-only
|
||||
*/
|
||||
|
||||
import { computed, reactive } from 'vue';
|
||||
import { computed, defineAsyncComponent, reactive } from 'vue';
|
||||
import { clearCache } from './scripts/clear-cache.js';
|
||||
import { instance } from './instance.js';
|
||||
import { $i } from '@/account.js';
|
||||
|
@ -74,6 +74,18 @@ export const navbarItemDef = reactive({
|
|||
show: computed(() => $i != null && !$i.movedTo),
|
||||
to: '/following-feed',
|
||||
},
|
||||
scheduledNotes: {
|
||||
title: i18n.ts.scheduledNotes,
|
||||
icon: 'ti ti-calendar-event',
|
||||
show: computed(() => $i != null),
|
||||
action: (ev) => {
|
||||
const { dispose } = os.popup(defineAsyncComponent(() => import('@/components/MkSchedulePostListDialog.vue')), {}, {
|
||||
closed: () => {
|
||||
dispose();
|
||||
},
|
||||
});
|
||||
},
|
||||
},
|
||||
lists: {
|
||||
title: i18n.ts.lists,
|
||||
icon: 'ti ti-list',
|
||||
|
|
|
@ -422,6 +422,8 @@ selectFollowRelationship: "Select a follow relationship..."
|
|||
|
||||
schedulePost: "Schedule a note"
|
||||
schedulePostList: "List of scheduled notes"
|
||||
postOn: "Post on"
|
||||
scheduledNotes: "Scheduled Notes"
|
||||
|
||||
_permissions:
|
||||
"read:notes-schedule": "View your list of scheduled notes"
|
||||
|
|
Loading…
Reference in a new issue