Added array changes

This commit is contained in:
Eduard Urbach 2018-03-09 22:05:01 +01:00
parent c1ccc200cd
commit 54abae5e32

View File

@ -22,10 +22,17 @@ component EditLog(entries []*arn.EditLogEntry, user *arn.User)
else if entry.Action == "delete"
.edit-log-delete
RawIcon("minus")
else if entry.Action == "edit"
else if entry.Action == "edit" || entry.Action == "arrayAppend" || entry.Action == "arrayRemove"
.edit-log-change
RawIcon("pencil")
if entry.Action == "arrayAppend"
.edit-log-sub-icon.edit-log-add
RawIcon("plus-square")
else if entry.Action == "arrayRemove"
.edit-log-sub-icon.edit-log-remove
RawIcon("minus-square")
else
if entry.OldValue == "" && entry.NewValue != ""
.edit-log-sub-icon.edit-log-add
RawIcon("plus-circle")