1
0
mirror of https://github.com/BoostIo/Boostnote synced 2025-12-15 10:46:32 +00:00

Add: Log in / Sign upの時にエラーが出たらAlertを表示する

Debug: Tray Icon, PopUpWindow, Menuがいつの間にか消える
This commit is contained in:
Rokt33r
2015-07-29 22:43:27 +09:00
parent 90c2ff7480
commit c6ef86cbbe
8 changed files with 194 additions and 34 deletions

View File

@@ -23,7 +23,10 @@ var AuthStore = Reflux.createStore({
.end(function (err, res) {
if (err) {
console.error(err)
this.trigger(null)
this.trigger({
status: 'failedToLogIn',
data: res
})
return
}
@@ -44,8 +47,11 @@ var AuthStore = Reflux.createStore({
.set('Accept', 'application/json')
.end(function (err, res) {
if (err) {
console.error(err)
this.trigger(null)
console.error(res)
this.trigger({
status: 'failedToRegister',
data: res
})
return
}