Skip to content

Commit

Permalink
fix in UI that "bearerDevOps" token is stored to local storage
Browse files Browse the repository at this point in the history
* fallback to display connection "id" if no "name" is present

Signed-off-by: Thomas Jäckle <thomas.jaeckle@beyonnex.io>
  • Loading branch information
thjaeckle authored and Stanchev Aleksandar committed Apr 18, 2023
1 parent fcac9fa commit 9d11565
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion ui/modules/connections/connections.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ export function loadConnections() {
},
id);
} else {
row.insertCell(0).innerHTML = connection.name;
row.insertCell(0).innerHTML = connection.name ? connection.name : id;
}
API.callConnectionsAPI('retrieveStatus', (status) => {
row.insertCell(-1).innerHTML = status.liveStatus;
Expand Down
4 changes: 4 additions & 0 deletions ui/modules/environments/environments.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,10 @@ function Environment(env) {
enumerable: false,
writable: true,
},
bearerDevOps: {
enumerable: false,
writable: true,
},
usernamePassword: {
value: this.defaultUsernamePassword,
enumerable: false,
Expand Down

0 comments on commit 9d11565

Please sign in to comment.