Skip to content

Commit

Permalink
add eror message box
Browse files Browse the repository at this point in the history
Signed-off-by: Moritz Warning <[email protected]>
  • Loading branch information
mwarning committed Sep 14, 2024
1 parent 2beb3f2 commit 93409e8
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 0 deletions.
11 changes: 11 additions & 0 deletions www/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -457,3 +457,14 @@ body {
color: #d0d0d0;
}
}

#error-bar {
position: absolute;
z-index: 1001;
height: 2em;
line-height: 2em;
width: 100%;
background-color: red;
text-align: center;
visibility: hidden;
}
2 changes: 2 additions & 0 deletions www/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,8 @@
</div>
</header>

<div id="error-bar">Some error occured</div>

<div class="container">
<div>
<h2 class="tr-load">Download OpenWrt Firmware for your Device</h2>
Expand Down
1 change: 1 addition & 0 deletions www/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -878,6 +878,7 @@ async function init() {
// trigger update of current selected model
$("#models").onfocus();
});
//$('alert-bar').innerText = "Failed to fetch " + base_url + "/.overview.json
});

setup_uci_defaults();
Expand Down

0 comments on commit 93409e8

Please sign in to comment.