Added new status to shared notes

* Shared notes can be new or updated
* New - Note has never been opened
* Updated - Shared note was read but modified by other user
This commit is contained in:
Max G 2020-02-24 06:09:28 +00:00
parent 8f5d8049d0
commit 902e779a84

View File

@ -17,14 +17,18 @@
<span class="subtext" v-if="note.shareUsername"> <span class="subtext" v-if="note.shareUsername">
Shared by {{ note.shareUsername }} Shared by {{ note.shareUsername }}
<span v-if="note.updated > note.opened && !beenClicked" class="ui tiny green compact right floated button">
Unread <span v-if="note.opened == null && !beenClicked" class="ui tiny green compact right floated button">
New
</span>
<span v-else-if="note.updated > note.opened && !beenClicked" class="ui tiny green compact right floated basic button">
Updated
</span> </span>
</span> </span>
<span class="subtext" v-if="note.shared == 2"> <span class="subtext" v-if="note.shared == 2">
You Shared You Shared
<span v-if="note.updated > note.opened && !beenClicked" class="ui tiny green compact right floated button"> <span v-if="note.updated > note.opened && !beenClicked" class="ui tiny green compact right floated basic button">
Updated Updated
</span> </span>
</span> </span>