mirror of
http://git.whoc.org.uk/git/password-manager.git
synced 2025-10-29 10:27:35 +01:00
Added “Offline copy” banner in the login page
This commit is contained in:
@@ -49,9 +49,10 @@ Clipperz.PM.UI.Components.AccountStatusClass = React.createClass({
|
||||
accountInfoClasses[this.props['featureSet']] = true;
|
||||
|
||||
var proxyInfoClasses = {
|
||||
'proxyInfo': true
|
||||
'proxyInfo': true
|
||||
}
|
||||
proxyInfoClasses[this.props['proxyType']] = true;
|
||||
proxyInfoClasses['withReferenceDate'] = (this.props['referenceDate'] != null);
|
||||
|
||||
return React.DOM.div({'className':'miscInfo'}, [
|
||||
React.DOM.div({'className':Clipperz.PM.UI.Components.classNames(proxyInfoClasses)}, [
|
||||
|
||||
@@ -168,8 +168,8 @@ Clipperz.PM.UI.Components.Pages.LoginPageClass = React.createClass({
|
||||
// ]);
|
||||
|
||||
var registrationLink = React.DOM.a({'key':'signup', 'className':'registrationLink', 'onClick':this.handleRegistrationLinkClick}, "Sign up");
|
||||
|
||||
return React.DOM.div({'key':'loginForm', 'className':'loginForm ' + this.props['style']}, [
|
||||
Clipperz.PM.UI.Components.AccountStatus(MochiKit.Base.update(this.props['proxyInfo'])),
|
||||
React.DOM.header({'key':'header'}, [
|
||||
React.DOM.h3({}, 'clipperz'),
|
||||
React.DOM.h5({}, 'keep it to yourself'),
|
||||
|
||||
@@ -1011,8 +1011,8 @@ console.log("THE BROWSER IS OFFLINE");
|
||||
'proxyType': Clipperz.PM.Proxy.defaultProxy.type(),
|
||||
'proxyTypeDescription': Clipperz.PM.Proxy.defaultProxy.typeDescription()
|
||||
}
|
||||
|
||||
},
|
||||
|
||||
//-------------------------------------------------------------------------
|
||||
|
||||
messageBoxContent: function () {
|
||||
@@ -1054,6 +1054,7 @@ console.log("THE BROWSER IS OFFLINE");
|
||||
'mode': 'CREDENTIALS',
|
||||
'isNewUserRegistrationAvailable': Clipperz.PM.Proxy.defaultProxy.canRegisterNewUsers(),
|
||||
'disabled': false,
|
||||
'proxyInfo': this.proxyInfo(),
|
||||
};
|
||||
} else if (aPageName == 'registrationPage') {
|
||||
} else if (aPageName == 'mainPage') {
|
||||
|
||||
Reference in New Issue
Block a user