Skip to content

Commit 09b7067

Browse files
authoredMar 17, 2025
no-issue: fix bug where custom jql view does not disappear when jira unauth (#200)
1 parent c108b21 commit 09b7067

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed
 

‎package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -496,7 +496,7 @@
496496
{
497497
"id": "atlascode.views.jira.customJqlTreeView",
498498
"name": "Custom Jql Filters",
499-
"when": "atlascode:assignedIssueExplorerEnabled && config.atlascode.jira.enabled && atlascode:customJQLExplorerEnabled"
499+
"when": "atlascode:assignedIssueExplorerEnabled && config.atlascode.jira.enabled && atlascode:customJQLExplorerEnabled && atlascode:isJiraAuthenticated"
500500
},
501501
{
502502
"id": "atlascode.views.bb.pullrequestsTreeView",

‎src/views/jira/treeViews/customJqlViewProvider.ts

+5-1
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,11 @@ export class CustomJQLViewProvider implements TreeDataProvider<TreeItem>, Dispos
6161
}
6262

6363
private onConfigurationChanged(e: ConfigurationChangeEvent) {
64-
if (configuration.changed(e, 'jira.jqlList') || configuration.changed(e, 'jira.explorer')) {
64+
if (
65+
configuration.changed(e, 'jira.jqlList') ||
66+
configuration.changed(e, 'jira.explorer') ||
67+
configuration.changed(e, 'jira.explorer.enabled')
68+
) {
6569
const jqlEntries = Container.jqlManager.getCustomJQLEntries();
6670
if (jqlEntries.length > 0) {
6771
setCommandContext(CommandContext.CustomJQLExplorer, Container.config.jira.explorer.enabled);

0 commit comments

Comments
 (0)