Skip to content

Commit

Permalink
fix(storage) ensure landing urls for storage pool creation and deleti…
Browse files Browse the repository at this point in the history
…on is correct after refactoring of storage urls. fixes #770

Signed-off-by: David Edler <[email protected]>
  • Loading branch information
edlerd authored and mas-who committed May 16, 2024
1 parent 11fb35e commit 7dcb459
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/pages/storage/CreateStoragePool.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ const CreateStoragePool: FC = () => {
void queryClient.invalidateQueries({
queryKey: [queryKeys.storage],
});
navigate(`/ui/project/${project}/storage`);
navigate(`/ui/project/${project}/storage/pools`);
toastNotify.success(`Storage pool ${storagePool.name} created.`);
})
.catch((e) => {
Expand Down Expand Up @@ -100,7 +100,7 @@ const CreateStoragePool: FC = () => {
<FormFooterLayout>
<Button
appearance="base"
onClick={() => navigate(`/ui/project/${project}/storage`)}
onClick={() => navigate(`/ui/project/${project}/storage/pools`)}
>
Cancel
</Button>
Expand Down
2 changes: 1 addition & 1 deletion src/pages/storage/actions/DeleteStoragePoolBtn.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ const DeleteStoragePoolBtn: FC<Props> = ({
void queryClient.invalidateQueries({
queryKey: [queryKeys.storage],
});
navigate(`/ui/project/${project}/storage`);
navigate(`/ui/project/${project}/storage/pools`);
toastNotify.success(`Storage pool ${pool.name} deleted.`);
})
.catch((e) => {
Expand Down

0 comments on commit 7dcb459

Please sign in to comment.