mirror of
https://github.com/hkalexling/Mango.git
synced 2025-08-02 19:05:32 -04:00
Add error handling on admin page (fixes #274)
This commit is contained in:
parent
ab3386546d
commit
3c399fac4e
@ -31,6 +31,9 @@ const component = () => {
|
|||||||
this.scanMs = data.milliseconds;
|
this.scanMs = data.milliseconds;
|
||||||
this.scanTitles = data.titles;
|
this.scanTitles = data.titles;
|
||||||
})
|
})
|
||||||
|
.catch(e => {
|
||||||
|
alert('danger', `Failed to trigger a scan. Error: ${e}`);
|
||||||
|
})
|
||||||
.always(() => {
|
.always(() => {
|
||||||
this.scanning = false;
|
this.scanning = false;
|
||||||
});
|
});
|
||||||
|
@ -40,5 +40,6 @@
|
|||||||
<a class="uk-button uk-button-danger" href="<%= base_url %>logout">Log Out</a>
|
<a class="uk-button uk-button-danger" href="<%= base_url %>logout">Log Out</a>
|
||||||
|
|
||||||
<% content_for "script" do %>
|
<% content_for "script" do %>
|
||||||
|
<script src="<%= base_url %>js/alert.js"></script>
|
||||||
<script src="<%= base_url %>js/admin.js"></script>
|
<script src="<%= base_url %>js/admin.js"></script>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user