handle Update
activities for Notes
#395
2 changed files with 13 additions and 0 deletions
|
@ -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()">
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue