handle Update activities for Notes #395

Manually merged
Johann150 merged 7 commits from note-editing into main 2023-07-02 08:07:24 +00:00
2 changed files with 13 additions and 0 deletions
Showing only changes of commit 76c8e6b11b - Show all commits

View file

@ -79,6 +79,12 @@
<MkA class="created-at" :to="notePage(appearNote)">
<MkTime :time="appearNote.createdAt" mode="detail"/>
</MkA>
<!-- TODO link to edit history? -->
<div v-if="appearNote.updatedAt != null">
<i class="fas fa-pencil"></i>
{{ i18n.ts.updatedAt }}
<MkTime :time="appearNote.updatedAt" mode="detail"/>
</div>
</div>
<XReactionsViewer ref="reactionsViewer" :note="appearNote"/>
<button class="button _button" @click="reply()">

View file

@ -9,6 +9,9 @@
<MkA class="created-at" :to="notePage(note)">
<MkTime :time="note.createdAt"/>
</MkA>
<span class="updated-at" v-if="note.updatedAt != null" ref="updatedEl">
<i class="fas fa-pencil"></i>
</span>
<MkVisibility :note="note"/>
</div>
</header>
@ -69,6 +72,10 @@ defineProps<{
flex-shrink: 0;
margin-left: auto;
font-size: 0.9em;
> .updated-at {
margin-left: var(--marginHalf);
}
}
}
</style>