mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-16 18:46:40 -05:00
Change 'Clear All' to 'Show All Connections' (#2865)
This commit is contained in:
@@ -218,7 +218,7 @@ export class ActiveConnectionsFilterAction extends Action {
|
|||||||
public static LABEL = localize('activeConnections', 'Show Active Connections');
|
public static LABEL = localize('activeConnections', 'Show Active Connections');
|
||||||
private static enabledClass = 'active-connections-action';
|
private static enabledClass = 'active-connections-action';
|
||||||
private static disabledClass = 'icon server-page';
|
private static disabledClass = 'icon server-page';
|
||||||
private static clearAllLabel = localize('clearAll', 'Clear All');
|
private static showAllConnectionsLabel = localize('showAllConnections', 'Show All Connections');
|
||||||
private _isSet: boolean;
|
private _isSet: boolean;
|
||||||
public static readonly ACTIVE = 'active';
|
public static readonly ACTIVE = 'active';
|
||||||
public get isSet(): boolean {
|
public get isSet(): boolean {
|
||||||
@@ -249,7 +249,7 @@ export class ActiveConnectionsFilterAction extends Action {
|
|||||||
// show active connections in the tree
|
// show active connections in the tree
|
||||||
this.view.showFilteredTree(ActiveConnectionsFilterAction.ACTIVE);
|
this.view.showFilteredTree(ActiveConnectionsFilterAction.ACTIVE);
|
||||||
this.isSet = true;
|
this.isSet = true;
|
||||||
this.label = ActiveConnectionsFilterAction.clearAllLabel;
|
this.label = ActiveConnectionsFilterAction.showAllConnectionsLabel;
|
||||||
} else {
|
} else {
|
||||||
// show full tree
|
// show full tree
|
||||||
this.view.refreshTree();
|
this.view.refreshTree();
|
||||||
|
|||||||
Reference in New Issue
Block a user