Skip to content

Commit

Permalink
Added load of API key by url
Browse files Browse the repository at this point in the history
  • Loading branch information
juanatsap committed Mar 25, 2021
1 parent 0493964 commit 52e2cb9
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
3 changes: 2 additions & 1 deletion css/demo.css
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,8 @@ button {
background-color: #e6f9e6;
padding: 21px;
}
.navbar .navbar-item .button-apikey.dynamic-apikey.api-key-error {
.navbar .navbar-item .button-apikey.api-key-error {
padding: 21px;
background-color: #ff000033;
}
.navbar .provider-img {
Expand Down
2 changes: 1 addition & 1 deletion js/engine.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ function loadConfigFromFile(out) {
console.error("Invalid API Key. Loading default one...");
// Updating error label to reflect the error
setTimeout(function() {
const labelForApiKey = query('.navbar .button-apikey.dynamic-apikey');
const labelForApiKey = query('.navbar .button-apikey');
if (labelForApiKey) {

labelForApiKey.classList.add('api-key-error');
Expand Down
7 changes: 4 additions & 3 deletions less/src/framework.less
Original file line number Diff line number Diff line change
Expand Up @@ -258,9 +258,10 @@
&.dynamic-apikey {
background-color: #e6f9e6;
padding: 21px;
&.api-key-error {
background-color: #ff000033;
}
}
&.api-key-error {
padding: 21px;
background-color: #ff000033;
}
}
}
Expand Down

0 comments on commit 52e2cb9

Please sign in to comment.