Skip to content

Commit

Permalink
Handle additional activity events (#128)
Browse files Browse the repository at this point in the history
  • Loading branch information
braginini authored Jan 31, 2023
1 parent adf6e1e commit 8195587
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions src/views/Activity.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -160,10 +160,21 @@ export const Activity = () => {
case "group.add":
case "group.update":
return renderMultiRowSpan(event.meta.name,"Group")
case "nameserver.group.add":
case "nameserver.group.update":
case "nameserver.group.delete":
return renderMultiRowSpan(event.meta.name,"Nameserver group")
case "setupkey.peer.add":
case "user.peer.add":
case "user.peer.delete":
case "peer.ssh.enable":
case "peer.ssh.disable":
case "peer.rename":
return renderMultiRowSpan(event.meta.fqdn,event.meta.ip)
case "route.add":
case "route.delete":
case "route.update":
return renderMultiRowSpan(event.meta.name, "Route for range " + event.meta.network_range)
case "user.group.add":
case "user.group.delete":
if (user) {
Expand All @@ -177,9 +188,8 @@ export const Activity = () => {
case "peer.group.delete":
return renderMultiRowSpan(event.meta.peer_fqdn,event.meta.peer_ip)
case "dns.setting.disabled.management.group.add":
return "-"
case "dns.setting.disabled.management.group.delete":
return "-"
return renderMultiRowSpan("","System setting")
case "user.invite":
if (user) {
return renderMultiRowSpan(user.name ? user.name : user.id,user.email ? user.email : "User")
Expand Down

0 comments on commit 8195587

Please sign in to comment.