Notify when the native app is not up to date (#69)

This commit is contained in:
Maxim Baz
2019-04-04 10:31:48 +02:00
committed by GitHub
parent ad5abdd51c
commit 9d467c4022
2 changed files with 28 additions and 0 deletions

View File

@@ -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;
}

View File

@@ -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;
}
}