Skip to content

Commit

Permalink
fix(ui): show prompt when using prune option
Browse files Browse the repository at this point in the history
Signed-off-by: ashutosh16 <[email protected]>
  • Loading branch information
ashutosh16 committed Dec 14, 2023
1 parent 7bc2987 commit ef0b01d
Showing 1 changed file with 2 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down Expand Up @@ -104,9 +97,7 @@ export const ApplicationSyncPanel = ({application, selectedResource, hide}: {app
if (prune) {
const confirmed = await ctx.popup.confirm('Synchronize with prune?', () => (
<div>
<i className='fa fa-exclamation-triangle'
style={{color: ARGO_WARNING_COLOR}}/> {PRUNE_WARNING} Are you sure you
want to continue?
<i className='fa fa-exclamation-triangle' style={{color: ARGO_WARNING_COLOR}} /> {PRUNE_WARNING} Are you sure you want to continue?
</div>
));
if (!confirmed) {
Expand Down

0 comments on commit ef0b01d

Please sign in to comment.