mirror of
https://github.com/heyarne/airsonic-ui.git
synced 2026-05-07 02:33:39 +02:00
Display api errors as notifications
This commit is contained in:
parent
7fd5e6189d
commit
aa04e68545
9 changed files with 118 additions and 61 deletions
14
test/cljs/airsonic_ui/fixtures.cljs
Normal file
14
test/cljs/airsonic_ui/fixtures.cljs
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
(ns airsonic-ui.fixtures)
|
||||
|
||||
(def responses {:error {:subsonic-response
|
||||
{:error {:code 40
|
||||
:message "Wrong username or password"}
|
||||
:status "failed"
|
||||
:version "1.15.0"}}
|
||||
:ok {:subsonic-response
|
||||
{:scanStatus {:count 10326
|
||||
:scanning false}
|
||||
:status "ok"
|
||||
:version "1.15.0"}}
|
||||
:auth-success {:subsonic-response {:status "ok"
|
||||
:version "1.15.0"}}})
|
||||
Loading…
Add table
Add a link
Reference in a new issue