notes, links, err fix
This commit is contained in:
parent
0e52a5e936
commit
4bace26750
6
app.moon
6
app.moon
@ -16,12 +16,12 @@ class Simplex extends Application
|
||||
@include locate "api"
|
||||
@include locate "docs"
|
||||
|
||||
-- TODO intentionally cause an error to see if this is working as intended
|
||||
handle_error: (err, trace) =>
|
||||
if @original_request.route_name\find "api_"
|
||||
return status: 500, json: { errors: {err}, :trace } -- NOTE trace should be saved and NOT returned to the user
|
||||
-- return status: 500, json: { errors: {err}, :trace } -- NOTE trace should be saved and NOT returned to the user
|
||||
return status: 500, json: { errors: {err} }
|
||||
else
|
||||
super!
|
||||
super err --, trace
|
||||
|
||||
[index: "/"]: =>
|
||||
@title = "Simplex Task Manager"
|
||||
|
@ -23,6 +23,10 @@ class extends Widget
|
||||
div class: "container", ->
|
||||
div class: "row", ->
|
||||
div class: "column column-25 btns", ->
|
||||
if @user
|
||||
a class: "button", href: @url_for("index"), "Tasks"
|
||||
else
|
||||
a class: "button", href: @url_for("index"), "About"
|
||||
a class: "button", href: @url_for("docs_v1"), "API Docs"
|
||||
div class: "column column-100", ->
|
||||
h1(@title or "Simplex")
|
||||
|
@ -67,7 +67,7 @@ function new_api_key() {
|
||||
}
|
||||
|
||||
function delete_item(e) {
|
||||
e = e.parents("li");
|
||||
e = $(e).parents("li");
|
||||
|
||||
checkbox = $("input:checkbox", e);
|
||||
if (checkbox.length) {
|
||||
|
Loading…
Reference in New Issue
Block a user