Fixed the snackbar

This commit is contained in:
n1474335 2022-12-09 20:46:01 +00:00
parent 771a013c9f
commit ff45f61b68
5 changed files with 14 additions and 4 deletions

View file

@ -107,4 +107,4 @@
background-image:
linear-gradient(to top, var(--input-highlight-colour) 2px, rgba(0, 0, 0, 0) 2px),
linear-gradient(to top, var(--primary-border-colour) 1px, rgba(0, 0, 0, 0) 1px);
}
}

View file

@ -111,7 +111,7 @@ class StatusBarPanel {
*/
chrEncSelectClick(e) {
// preventDefault is required to stop the URL being modified and popState being triggered
e.preventDefault(); // TODO - this breaks the menus when you click the button itself
e.preventDefault();
const chrEncVal = parseInt(e.target.getAttribute("data-val"), 10);

View file

@ -1274,7 +1274,7 @@ class OutputWaiter {
* Handler for copy click events.
* Copies the output to the clipboard
*/
async copyClick() { // TODO - do we need this?
async copyClick() {
const dish = this.getOutputDish(this.manager.tabs.getActiveTab("output"));
if (dish === null) {
this.app.alert("Could not find data to copy. Has this output been baked yet?", 3000);