mirror of
https://github.com/komodorio/helm-dashboard.git
synced 2026-03-26 14:28:04 +00:00
Added bracketSpacing into prettier (#627)
This commit is contained in:
@@ -130,8 +130,8 @@ export const InstallReleaseChartModal = ({
|
||||
});
|
||||
|
||||
// Confirm method (install)
|
||||
const setReleaseVersionMutation = useMutation(
|
||||
{mutationKey:[
|
||||
const setReleaseVersionMutation = useMutation({
|
||||
mutationKey: [
|
||||
"setVersion",
|
||||
namespace,
|
||||
releaseName,
|
||||
@@ -140,7 +140,7 @@ export const InstallReleaseChartModal = ({
|
||||
selectedCluster,
|
||||
chartAddress,
|
||||
],
|
||||
mutationFn:async () => {
|
||||
mutationFn: async () => {
|
||||
setInstallError("");
|
||||
const formData = new FormData();
|
||||
formData.append("preview", "false");
|
||||
@@ -161,21 +161,20 @@ export const InstallReleaseChartModal = ({
|
||||
);
|
||||
return data;
|
||||
},
|
||||
onSuccess: async (response) => {
|
||||
onClose();
|
||||
setSelectedVersionData({ version: "", urls: [] }); //cleanup
|
||||
navigate(
|
||||
`/${
|
||||
namespace ? namespace : "default"
|
||||
}/${releaseName}/installed/revision/${response.version}`
|
||||
);
|
||||
window.location.reload();
|
||||
},
|
||||
onError: (error) => {
|
||||
setInstallError((error as Error)?.message || "Failed to update");
|
||||
},
|
||||
}
|
||||
);
|
||||
onSuccess: async (response) => {
|
||||
onClose();
|
||||
setSelectedVersionData({ version: "", urls: [] }); //cleanup
|
||||
navigate(
|
||||
`/${
|
||||
namespace ? namespace : "default"
|
||||
}/${releaseName}/installed/revision/${response.version}`
|
||||
);
|
||||
window.location.reload();
|
||||
},
|
||||
onError: (error) => {
|
||||
setInstallError((error as Error)?.message || "Failed to update");
|
||||
},
|
||||
});
|
||||
|
||||
return (
|
||||
<Modal
|
||||
|
||||
@@ -112,8 +112,8 @@ export const InstallRepoChartModal = ({
|
||||
});
|
||||
|
||||
// Confirm method (install)
|
||||
const setReleaseVersionMutation = useMutation(
|
||||
{mutationKey:[
|
||||
const setReleaseVersionMutation = useMutation({
|
||||
mutationKey: [
|
||||
"setVersion",
|
||||
namespace,
|
||||
releaseName,
|
||||
@@ -122,7 +122,7 @@ export const InstallRepoChartModal = ({
|
||||
selectedCluster,
|
||||
chartAddress,
|
||||
],
|
||||
mutationFn:async () => {
|
||||
mutationFn: async () => {
|
||||
setInstallError("");
|
||||
const formData = new FormData();
|
||||
formData.append("preview", "false");
|
||||
@@ -140,17 +140,14 @@ export const InstallRepoChartModal = ({
|
||||
return data;
|
||||
},
|
||||
|
||||
onSuccess: async (response) => {
|
||||
onClose();
|
||||
navigate(
|
||||
`/${response.namespace}/${response.name}/installed/revision/1`
|
||||
);
|
||||
},
|
||||
onError: (error) => {
|
||||
setInstallError((error as Error)?.message || "Failed to update");
|
||||
},
|
||||
}
|
||||
);
|
||||
onSuccess: async (response) => {
|
||||
onClose();
|
||||
navigate(`/${response.namespace}/${response.name}/installed/revision/1`);
|
||||
},
|
||||
onError: (error) => {
|
||||
setInstallError((error as Error)?.message || "Failed to update");
|
||||
},
|
||||
});
|
||||
|
||||
return (
|
||||
<Modal
|
||||
|
||||
Reference in New Issue
Block a user