From ef0b01dac23bfb5f2b15ce5f338a5d36db2c452b Mon Sep 17 00:00:00 2001 From: ashutosh16 <11219262+ashutosh16@users.noreply.github.com> Date: Wed, 13 Dec 2023 22:52:16 -0800 Subject: [PATCH] fix(ui): show prompt when using prune option Signed-off-by: ashutosh16 <11219262+ashutosh16@users.noreply.github.com> --- .../application-sync-panel.tsx | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/ui/src/app/applications/components/application-sync-panel/application-sync-panel.tsx b/ui/src/app/applications/components/application-sync-panel/application-sync-panel.tsx index 293e34d2a6873f..652ece7528ae53 100644 --- a/ui/src/app/applications/components/application-sync-panel/application-sync-panel.tsx +++ b/ui/src/app/applications/components/application-sync-panel/application-sync-panel.tsx @@ -7,14 +7,7 @@ import {Consumer} from '../../../shared/context'; import * as models from '../../../shared/models'; import {services} from '../../../shared/services'; import {ApplicationRetryOptions} from '../application-retry-options/application-retry-options'; -import { - ApplicationManualSyncFlags, - ApplicationSyncOptions, - FORCE_WARNING, - SyncFlags, - REPLACE_WARNING, - PRUNE_WARNING -} from '../application-sync-options/application-sync-options'; +import {ApplicationManualSyncFlags, ApplicationSyncOptions, FORCE_WARNING, SyncFlags, REPLACE_WARNING, PRUNE_WARNING} from '../application-sync-options/application-sync-options'; import {ComparisonStatusIcon, getAppDefaultSource, nodeKey} from '../utils'; import './application-sync-panel.scss'; @@ -104,9 +97,7 @@ export const ApplicationSyncPanel = ({application, selectedResource, hide}: {app if (prune) { const confirmed = await ctx.popup.confirm('Synchronize with prune?', () => (
- {PRUNE_WARNING} Are you sure you - want to continue? + {PRUNE_WARNING} Are you sure you want to continue?
)); if (!confirmed) {