mirror of
https://github.com/minio/minio.git
synced 2025-11-21 02:09:08 -05:00
revert browser newux changes (#5714)
This commit is contained in:
@@ -114,7 +114,7 @@ export const deleteBucket = bucket => {
|
||||
dispatch(removeBucket(bucket))
|
||||
dispatch(fetchBuckets())
|
||||
})
|
||||
.catch(err => {
|
||||
.catch(err => {
|
||||
dispatch(
|
||||
alertActions.set({
|
||||
type: "danger",
|
||||
@@ -153,8 +153,10 @@ export const fetchPolicies = bucket => {
|
||||
})
|
||||
.then(res => {
|
||||
let policies = res.policies
|
||||
if (policies) dispatch(setPolicies(policies))
|
||||
else dispatch(setPolicies([]))
|
||||
if(policies)
|
||||
dispatch(setPolicies(policies))
|
||||
else
|
||||
dispatch(setPolicies([]))
|
||||
})
|
||||
.catch(err => {
|
||||
dispatch(
|
||||
@@ -180,4 +182,4 @@ export const showBucketPolicy = () => ({
|
||||
export const hideBucketPolicy = () => ({
|
||||
type: SHOW_BUCKET_POLICY,
|
||||
show: false
|
||||
})
|
||||
})
|
||||
Reference in New Issue
Block a user