Skip to content

Commit

Permalink
fix(ui): lint
Browse files Browse the repository at this point in the history
Signed-off-by: ashutosh16 <11219262+ashutosh16@users.noreply.github.com>
  • Loading branch information
ashutosh16 committed Dec 18, 2023
1 parent d2136bd commit b0f5238
Showing 1 changed file with 9 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,14 @@ 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_ALL_WARNING} from '../application-sync-options/application-sync-options';
import {
ApplicationManualSyncFlags,
ApplicationSyncOptions,
FORCE_WARNING,
SyncFlags,
REPLACE_WARNING,
PRUNE_ALL_WARNING
} from '../application-sync-options/application-sync-options';
import {ComparisonStatusIcon, getAppDefaultSource, nodeKey} from '../utils';

import './application-sync-panel.scss';
Expand Down Expand Up @@ -61,7 +68,7 @@ export const ApplicationSyncPanel = ({application, selectedResource, hide}: {app
const allResourcesAreSelected = selectedResources.length === appResources.length;
const syncFlags = {...params.syncFlags} as SyncFlags;

let allRequirePruning = !selectedResources.some(resource => !resource?.requiresPruning);
const allRequirePruning = !selectedResources.some(resource => !resource?.requiresPruning);
if (syncFlags.Prune && allRequirePruning && allResourcesAreSelected) {
const confirmed = await ctx.popup.confirm('Prune all resources?', () => (
<div>
Expand Down

0 comments on commit b0f5238

Please sign in to comment.