Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 6 additions & 16 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5286,7 +5286,6 @@
var _ah=useState(false),showExcludeModal=_ah[0],setShowExcludeModal=_ah[1];
var _ai=useState(''),excludePatternInput=_ai[0],setExcludePatternInput=_ai[1];
var _aj=useState(''),excludePatternDraft=_aj[0],setExcludePatternDraft=_aj[1];
var _ak=useState(false),launchFolderAfterExcludeSave=_ak[0],setLaunchFolderAfterExcludeSave=_ak[1];
var _al=useState(null),confirmDialog=_al[0],setConfirmDialog=_al[1];
var _am=useState(window.innerWidth),viewportWidth=_am[0],setViewportWidth=_am[1];
var _an=useState(null),mobilePanel=_an[0],setMobilePanel=_an[1];
Expand Down Expand Up @@ -5497,27 +5496,18 @@
setShowGraphConfig(false);
}

function openExcludeModal(continueToFolder){
function openExcludeModal(){
setExcludePatternDraft(excludePatternInput);
setLaunchFolderAfterExcludeSave(!!continueToFolder);
setShowExcludeModal(true);
}

function closeExcludeModal(){
setShowExcludeModal(false);
setLaunchFolderAfterExcludeSave(false);
}

function saveExcludePatterns(){
var nextInput=excludePatternDraft;
var nextPatterns=compileExcludePatterns(nextInput);
var shouldLaunchFolder=launchFolderAfterExcludeSave;
setExcludePatternInput(nextInput);
setExcludePatternInput(excludePatternDraft);
setShowExcludeModal(false);
setLaunchFolderAfterExcludeSave(false);
if(shouldLaunchFolder){
launchLocalFolderPicker(nextPatterns);
}
}

function closeConfirmDialog(result){
Expand Down Expand Up @@ -5777,7 +5767,7 @@
}

function openLocalFolder(){
openExcludeModal(true);
launchLocalFolderPicker();
}

function openLocalZip(){
Expand Down Expand Up @@ -7649,7 +7639,7 @@
)
)
),
React.createElement('button',{className:'top-btn','aria-label':'Edit exclude patterns',onClick:function(){openExcludeModal(false);},disabled:loading,type:'button',style:customExcludeCount?{borderColor:'var(--acc)',color:'var(--acc)'}:null},
React.createElement('button',{className:'top-btn','aria-label':'Edit exclude patterns',onClick:function(){openExcludeModal();},disabled:loading,type:'button',style:customExcludeCount?{borderColor:'var(--acc)',color:'var(--acc)'}:null},
React.createElement(Icon,{name:'ban',size:'m'}),
'Excludes',
customExcludeCount>0?' ('+customExcludeCount+')':''
Expand Down Expand Up @@ -7694,7 +7684,7 @@
)
)
),
React.createElement('button',{className:'top-btn','aria-label':'Edit exclude patterns',onClick:function(){openExcludeModal(false);},disabled:loading,style:customExcludeCount?{borderColor:'var(--acc)',color:'var(--acc)'}:null},
React.createElement('button',{className:'top-btn','aria-label':'Edit exclude patterns',onClick:function(){openExcludeModal();},disabled:loading,style:customExcludeCount?{borderColor:'var(--acc)',color:'var(--acc)'}:null},
React.createElement(Icon,{name:'ban',size:'m'}),
'Excludes',
customExcludeCount>0?' ('+customExcludeCount+')':''
Expand Down Expand Up @@ -8252,7 +8242,7 @@
React.createElement('div',{className:'modal-footer'},
excludePatternDraft&&React.createElement('button',{className:'top-btn',onClick:function(){setExcludePatternDraft('');},style:{marginRight:'auto'}},'Clear Custom'),
React.createElement('button',{className:'top-btn',onClick:closeExcludeModal},'Cancel'),
React.createElement('button',{className:'top-btn primary',onClick:saveExcludePatterns},launchFolderAfterExcludeSave?'Save & Continue':'Save')
React.createElement('button',{className:'top-btn primary',onClick:saveExcludePatterns},'Save')
)
)
),
Expand Down