revert browser newux changes (#5714)

This commit is contained in:
Kanagaraj M
2018-03-27 01:19:12 +05:30
committed by Dee Koder
parent 35e64573fa
commit 19451e374a
186 changed files with 4507 additions and 16033 deletions

View File

@@ -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
})
})