Skip to content

Commit 3927672

Browse files
committed
app-catalog: Show install request accepted message
When creating a install request for a chart, we want to notify the user that the request has been accepted and close the editor as well so that user can interact with rest of the app meanwhile the install request works in background.
1 parent e07db25 commit 3927672

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

app-catalog/src/components/charts/EditorDialog.tsx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,10 @@ export function EditorDialog(props: {
149149
chartInstallDescription
150150
)
151151
.then(() => {
152+
enqueueSnackbar(`Install release request for ${releaseName} created successfully`, {
153+
variant: 'info',
154+
})
155+
handleEditor(false);
152156
checkInstallStatus(releaseName);
153157
})
154158
.catch(error => {
@@ -291,6 +295,7 @@ export function EditorDialog(props: {
291295
setReleaseName('');
292296
setSelectedVersion(null);
293297
setSelectedNamespace(null);
298+
setChartInstallDescription('');
294299
}}
295300
language="yaml"
296301
height="500px"

0 commit comments

Comments
 (0)