Added array changes
This commit is contained in:
parent
c1ccc200cd
commit
54abae5e32
@ -22,16 +22,23 @@ component EditLog(entries []*arn.EditLogEntry, user *arn.User)
|
|||||||
else if entry.Action == "delete"
|
else if entry.Action == "delete"
|
||||||
.edit-log-delete
|
.edit-log-delete
|
||||||
RawIcon("minus")
|
RawIcon("minus")
|
||||||
else if entry.Action == "edit"
|
else if entry.Action == "edit" || entry.Action == "arrayAppend" || entry.Action == "arrayRemove"
|
||||||
.edit-log-change
|
.edit-log-change
|
||||||
RawIcon("pencil")
|
RawIcon("pencil")
|
||||||
|
|
||||||
if entry.OldValue == "" && entry.NewValue != ""
|
if entry.Action == "arrayAppend"
|
||||||
.edit-log-sub-icon.edit-log-add
|
.edit-log-sub-icon.edit-log-add
|
||||||
RawIcon("plus-circle")
|
RawIcon("plus-square")
|
||||||
else if entry.OldValue != "" && entry.NewValue == ""
|
else if entry.Action == "arrayRemove"
|
||||||
.edit-log-sub-icon.edit-log-remove
|
.edit-log-sub-icon.edit-log-remove
|
||||||
RawIcon("minus-circle")
|
RawIcon("minus-square")
|
||||||
|
else
|
||||||
|
if entry.OldValue == "" && entry.NewValue != ""
|
||||||
|
.edit-log-sub-icon.edit-log-add
|
||||||
|
RawIcon("plus-circle")
|
||||||
|
else if entry.OldValue != "" && entry.NewValue == ""
|
||||||
|
.edit-log-sub-icon.edit-log-remove
|
||||||
|
RawIcon("minus-circle")
|
||||||
|
|
||||||
td
|
td
|
||||||
.edit-log-user
|
.edit-log-user
|
||||||
|
Loading…
Reference in New Issue
Block a user