Fixed Bucket Events Notifications Page (#2906)

- Added missing ilm & replica supported types
- Fixed add screen crash when no arn is selected
- Migrated components to mds

Signed-off-by: Benjamin Perez <benjamin@bexsoft.net>
This commit is contained in:
Alex
2023-06-28 15:39:02 -06:00
committed by GitHub
parent d1ae271111
commit df937467a0
10 changed files with 92 additions and 142 deletions

View File

@@ -7433,7 +7433,9 @@ func init() {
"enum": [
"put",
"delete",
"get"
"get",
"replica",
"ilm"
]
},
"objectBucketLifecycle": {
@@ -16564,7 +16566,9 @@ func init() {
"enum": [
"put",
"delete",
"get"
"get",
"replica",
"ilm"
]
},
"objectBucketLifecycle": {

View File

@@ -73,7 +73,14 @@ func listBucketEvents(client MinioClient, bucketName string) ([]*models.Notifica
eventTypePretty = models.NotificationEventTypePut
case notification.ObjectRemovedAll:
eventTypePretty = models.NotificationEventTypeDelete
case notification.ObjectReplicationAll:
eventTypePretty = models.NotificationEventTypeReplica
case notification.ObjectTransitionAll:
eventTypePretty = models.NotificationEventTypeIlm
default:
continue
}
result = append(result, eventTypePretty)
}
return result