diff --git a/browser/app/js/browser/Login.js b/browser/app/js/browser/Login.js
index a732a29f4..53b1e4053 100644
--- a/browser/app/js/browser/Login.js
+++ b/browser/app/js/browser/Login.js
@@ -48,7 +48,7 @@ export class Login extends React.Component {
handleSubmit(event) {
event.preventDefault()
- const { showAlert, history } = this.props
+ const { showAlert, clearAlert, history } = this.props
let message = ""
if (this.state.accessKey === "") {
message = "Access Key cannot be empty"
@@ -66,6 +66,9 @@ export class Login extends React.Component {
password: this.state.secretKey
})
.then(res => {
+ // Clear alerts from previous login attempts
+ clearAlert()
+
history.push("/")
})
.catch(e => {
@@ -145,4 +148,7 @@ const mapDispatchToProps = dispatch => {
}
}
-export default connect(state => state, mapDispatchToProps)(Login)
+export default connect(
+ state => state,
+ mapDispatchToProps
+)(Login)
diff --git a/browser/ui-assets.go b/browser/ui-assets.go
index b61458d76..f26630be7 100644
--- a/browser/ui-assets.go
+++ b/browser/ui-assets.go
@@ -6,7 +6,7 @@
// production/favicon-96x96.png
// production/firefox.png
// production/index.html
-// production/index_bundle-2019-03-23T11-14-39Z.js
+// production/index_bundle-2019-04-12T09-33-47Z.js
// production/loader.css
// production/logo.svg
// production/safari.png
@@ -16,6 +16,7 @@ package browser
import (
"fmt"
+ "github.com/elazarl/go-bindata-assetfs"
"io/ioutil"
"os"
"path/filepath"
@@ -66,7 +67,7 @@ func productionChromePng() (*asset, error) {
return nil, err
}
- info := bindataFileInfo{name: "production/chrome.png", size: 3726, mode: os.FileMode(420), modTime: time.Unix(1553339699, 0)}
+ info := bindataFileInfo{name: "production/chrome.png", size: 3726, mode: os.FileMode(420), modTime: time.Unix(1555061649, 0)}
a := &asset{bytes: bytes, info: info}
return a, nil
}
@@ -83,7 +84,7 @@ func productionFavicon16x16Png() (*asset, error) {
return nil, err
}
- info := bindataFileInfo{name: "production/favicon-16x16.png", size: 14906, mode: os.FileMode(420), modTime: time.Unix(1553339699, 0)}
+ info := bindataFileInfo{name: "production/favicon-16x16.png", size: 14906, mode: os.FileMode(420), modTime: time.Unix(1555061649, 0)}
a := &asset{bytes: bytes, info: info}
return a, nil
}
@@ -100,7 +101,7 @@ func productionFavicon32x32Png() (*asset, error) {
return nil, err
}
- info := bindataFileInfo{name: "production/favicon-32x32.png", size: 16066, mode: os.FileMode(420), modTime: time.Unix(1553339699, 0)}
+ info := bindataFileInfo{name: "production/favicon-32x32.png", size: 16066, mode: os.FileMode(420), modTime: time.Unix(1555061649, 0)}
a := &asset{bytes: bytes, info: info}
return a, nil
}
@@ -117,7 +118,7 @@ func productionFavicon96x96Png() (*asset, error) {
return nil, err
}
- info := bindataFileInfo{name: "production/favicon-96x96.png", size: 17029, mode: os.FileMode(420), modTime: time.Unix(1553339699, 0)}
+ info := bindataFileInfo{name: "production/favicon-96x96.png", size: 17029, mode: os.FileMode(420), modTime: time.Unix(1555061649, 0)}
a := &asset{bytes: bytes, info: info}
return a, nil
}
@@ -134,7 +135,7 @@ func productionFirefoxPng() (*asset, error) {
return nil, err
}
- info := bindataFileInfo{name: "production/firefox.png", size: 4795, mode: os.FileMode(420), modTime: time.Unix(1553339699, 0)}
+ info := bindataFileInfo{name: "production/firefox.png", size: 4795, mode: os.FileMode(420), modTime: time.Unix(1555061649, 0)}
a := &asset{bytes: bytes, info: info}
return a, nil
}
@@ -194,8 +195,8 @@ var _productionIndexHTML = []byte(`
-
-
+
+