ノートの編集履歴を見れるように(新規ノートのみ)
This commit is contained in:
parent
6840434661
commit
25763ee679
6 changed files with 47 additions and 1 deletions
|
|
@ -137,6 +137,7 @@ SPDX-License-Identifier: AGPL-3.0-only
|
|||
<button class="_button" :class="[$style.tab, { [$style.tabActive]: tab === 'replies' }]" @click="tab = 'replies'"><i class="ti ti-arrow-back-up"></i> {{ i18n.ts.replies }}</button>
|
||||
<button class="_button" :class="[$style.tab, { [$style.tabActive]: tab === 'renotes' }]" @click="tab = 'renotes'"><i class="ti ti-repeat"></i> {{ i18n.ts.renotes }}</button>
|
||||
<button class="_button" :class="[$style.tab, { [$style.tabActive]: tab === 'reactions' }]" @click="tab = 'reactions'"><i class="ti ti-icons"></i> {{ i18n.ts.reactions }}</button>
|
||||
<button class="_button" :class="[$style.tab, { [$style.tabActive]: tab === 'history' }]" @click="tab = 'history'"><i class="ti ti-pencil"></i> {{ i18n.ts.edited }}</button>
|
||||
</div>
|
||||
<div>
|
||||
<div v-if="tab === 'replies'" :class="$style.tab_replies">
|
||||
|
|
@ -173,6 +174,13 @@ SPDX-License-Identifier: AGPL-3.0-only
|
|||
</template>
|
||||
</MkPagination>
|
||||
</div>
|
||||
<div v-else-if="tab === 'history'" :class="$style.tab_history">
|
||||
<div style="display: grid;">
|
||||
<div v-for="text in appearNote.noteEditHistory.reverse()" :key="text">
|
||||
<MkNotePreview :class="$style.historyNote" :text="text"/>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div v-else class="_panel" :class="$style.muted" @click="muted = false">
|
||||
|
|
@ -192,6 +200,7 @@ import * as mfm from 'mfm-js';
|
|||
import * as Misskey from 'misskey-js';
|
||||
import MkNoteSub from '@/components/MkNoteSub.vue';
|
||||
import MkNoteSimple from '@/components/MkNoteSimple.vue';
|
||||
import MkNotePreview from '@/components/MkNotePreview.vue';
|
||||
import MkReactionsViewer from '@/components/MkReactionsViewer.vue';
|
||||
import MkMediaList from '@/components/MkMediaList.vue';
|
||||
import MkCwButton from '@/components/MkCwButton.vue';
|
||||
|
|
@ -747,6 +756,9 @@ function loadConversation() {
|
|||
padding: 16px;
|
||||
}
|
||||
|
||||
.tab_history {
|
||||
padding: 16px;
|
||||
}
|
||||
.reactionTabs {
|
||||
display: flex;
|
||||
gap: 8px;
|
||||
|
|
@ -810,6 +822,12 @@ function loadConversation() {
|
|||
}
|
||||
}
|
||||
|
||||
.historyNote {
|
||||
padding-top: 10px;
|
||||
min-height: 75px;
|
||||
overflow: auto;
|
||||
}
|
||||
|
||||
.muted {
|
||||
padding: 8px;
|
||||
text-align: center;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue