Notify when the native app is not up to date (#69)
This commit is contained in:
@@ -5,6 +5,8 @@ var FuzzySort = require("fuzzysort");
|
||||
var Moment = require("moment");
|
||||
var SearchInterface = require("./searchinterface");
|
||||
|
||||
const LATEST_NATIVE_APP_VERSION = 3000002;
|
||||
|
||||
/**
|
||||
* Popup main interface
|
||||
*
|
||||
@@ -110,6 +112,22 @@ function view(ctl, params) {
|
||||
)
|
||||
);
|
||||
|
||||
if (this.settings.version < LATEST_NATIVE_APP_VERSION) {
|
||||
nodes.push(
|
||||
m("div.updates", [
|
||||
m("span", "Update native host app: "),
|
||||
m(
|
||||
"a",
|
||||
{
|
||||
href: "https://github.com/browserpass/browserpass-native#installation",
|
||||
target: "_blank"
|
||||
},
|
||||
"instructions"
|
||||
)
|
||||
])
|
||||
);
|
||||
}
|
||||
|
||||
return nodes;
|
||||
}
|
||||
|
||||
|
@@ -223,3 +223,13 @@ body {
|
||||
color: @match-text-color;
|
||||
font-style: normal;
|
||||
}
|
||||
|
||||
.updates {
|
||||
padding: @login-part-padding;
|
||||
border-top: 1px solid @hover-bg-color;
|
||||
|
||||
span,
|
||||
a {
|
||||
color: @error-text-color;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user