web: add readonly indicator on notes

This commit is contained in:
Abdullah Atta
2024-02-13 11:18:05 +05:00
parent af1312977a
commit 0bd385395e

View File

@@ -191,6 +191,7 @@ function Note(props: NoteProps) {
{note.conflicted && <Alert size={15} color="var(--icon-error)" />}
{locked && <Lock size={11} data-test-id={`locked`} />}
{note.favorite && <Star color={primary} size={15} />}
{note.readonly && <Readonly size={15} />}
<TimeAgo live={true} datetime={date} locale="short" />
</>
) : (
@@ -228,6 +229,8 @@ function Note(props: NoteProps) {
{locked && <Lock size={13} data-test-id={`locked`} />}
{note.readonly && <Readonly size={15} />}
{note.favorite && <Star color={primary} size={15} />}
{tags?.items.map((tag) => {