Skip to content

Commit

Permalink
Merge pull request #2 from binance/0.3.1
Browse files Browse the repository at this point in the history
v0.3.1 release
  • Loading branch information
2pd authored Feb 15, 2023
2 parents 3df11c4 + a30e443 commit c32d320
Show file tree
Hide file tree
Showing 5 changed files with 388 additions and 3,276 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# CHANGELOG

## v0.3.1
- Fix tooltip on canceled save
- Update dependencies

## v0.3.0
- Restructured files
- Added error message on not saved key
Expand Down
16 changes: 11 additions & 5 deletions assets/js/renderer.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,15 +54,21 @@ const saveKey = async (input_key) => {

let label_id = `${lower_input_key}-key-text-area-tooltip`
// Display error tooltip for 5s
if (result) {
if (result.startsWith('Error')) {
tip_color = 'text-red-500';
} else {
} else if (result) {
tip_color = 'text-green-500';
result = `${input_key} Key saved`;
} else {
result = ""
}
document.getElementById(label_id).classList.add(tip_color);
document.getElementById(label_id).innerText = result;
setTimeout(function () { remove_label_text(label_id) }, 5000);

if (result) {
document.getElementById(label_id).classList.add(tip_color);
document.getElementById(label_id).innerText = result;
setTimeout(function () { remove_label_text(label_id) }, 5000);
}

}

// Event listeners
Expand Down
Loading

0 comments on commit c32d320

Please sign in to comment.