Remove server group colors from connection profile in OE (#23622)

* Remove server group

* remove css
This commit is contained in:
Aasim Khan
2023-07-04 10:55:19 -07:00
committed by GitHub
parent d495ebebe3
commit 0484cd086c
2 changed files with 0 additions and 19 deletions

View File

@@ -254,13 +254,6 @@
position: relative;
}
.monaco-list-row .connection-profile .connection-profile-container .server-group-color {
width: 5px;
height: 18px;
border-radius: 2.5px;
margin-top: 2.5px;
}
.monaco-list-row .connection-profile .connection-profile-container .icon .connection-status-badge {
position: absolute;
bottom: 0;

View File

@@ -105,7 +105,6 @@ class ConnectionProfileTemplate extends Disposable {
private _labelContainer: HTMLElement;
private _label: ResourceLabel;
private _actionBar: ActionBar;
private _serverGroupColorContainer: HTMLElement;
/**
* _isCompact is used to render connections tiles with and without the action buttons.
@@ -122,7 +121,6 @@ class ConnectionProfileTemplate extends Disposable {
super();
container.parentElement!.classList.add('connection-profile');
this._root = dom.append(container, dom.$('.connection-profile-container'));
this._serverGroupColorContainer = dom.append(this._root, dom.$('.server-group-color'));
this._icon = dom.append(this._root, dom.$('div.icon'));
this._connectionStatusBadge = dom.append(this._icon, dom.$('div.connection-status-badge'));
this._labelContainer = dom.append(this._root, dom.$('div.label'));
@@ -133,16 +131,6 @@ class ConnectionProfileTemplate extends Disposable {
}
set(element: ConnectionProfile, filterData: FuzzyScore) {
const colorGroup = element.parent;
if (colorGroup.isRoot) {
this._serverGroupColorContainer.style.display = 'none';
} else {
this._serverGroupColorContainer.style.display = 'block';
const backgroundColor = colorGroup.color ?? DefaultServerGroupColor;
this._serverGroupColorContainer.style.background = backgroundColor;
}
if (!this._isCompact) {
if (this._connectionManagementService.isConnected(undefined, element)) {
this._connectionStatusBadge.classList.remove('disconnected');