Fixed navigation after bucket creation (#2713)
Signed-off-by: Benjamin Perez <benjamin@bexsoft.net>
This commit is contained in:
@@ -175,7 +175,7 @@ export const addBucketsSlice = createSlice({
|
|||||||
})
|
})
|
||||||
.addCase(addBucketAsync.fulfilled, (state, action) => {
|
.addCase(addBucketAsync.fulfilled, (state, action) => {
|
||||||
state.loading = false;
|
state.loading = false;
|
||||||
state.navigateTo = `/buckets/${action.payload}/browse`;
|
state.navigateTo = `/buckets/${action.payload}/admin`;
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -271,7 +271,7 @@ const BucketListItem = ({
|
|||||||
<Grid item xs={12} className={classes.bucketStats}>
|
<Grid item xs={12} className={classes.bucketStats}>
|
||||||
<Grid container justifyContent={"flex-start"} spacing={4}>
|
<Grid container justifyContent={"flex-start"} spacing={4}>
|
||||||
<Grid item className={classes.bucketIcon}>
|
<Grid item className={classes.bucketIcon}>
|
||||||
<Link to={`/buckets/${bucket.name}/browse`}>
|
<Link to={`/buckets/${bucket.name}/admin`}>
|
||||||
<BucketsIcon />
|
<BucketsIcon />
|
||||||
</Link>
|
</Link>
|
||||||
</Grid>
|
</Grid>
|
||||||
|
|||||||
Reference in New Issue
Block a user