1
0
mirror of http://git.whoc.org.uk/git/password-manager.git synced 2025-10-30 19:07:35 +01:00

Added stub form to change passphrase

This commit is contained in:
Dario Chiappetta
2015-04-03 14:44:04 +02:00
parent e12e7283f1
commit 4dc0a68e0f
8 changed files with 1159 additions and 805 deletions

View File

@@ -55,7 +55,7 @@ Clipperz.PM.UI.Components.Panels.ExtraFeaturesPanelClass = React.createClass({
toggleIndexState: function (section) {
return MochiKit.Base.bind(function () {
var newState = { 'index': {} };
var newState = { 'index': this.state['index'] };
newState['index'][section] = !this.state['index'][section];
this.setState(newState);
@@ -119,7 +119,7 @@ Clipperz.PM.UI.Components.Panels.ExtraFeaturesPanelClass = React.createClass({
React.DOM.li({'key':'account', 'className':this.state['index']['account'] ? 'open' : 'closed'}, [
React.DOM.h1({'key':'accountH1', 'onClick':this.toggleIndexState('account')}, "Account"),
React.DOM.ul({'key':'accountUL'}, [
React.DOM.li({'key':'account_1'}, [
React.DOM.li({'key':'account_1', 'onClick':this.showExtraFeatureComponent('Passphrase')}, [
React.DOM.h2({'key':'account_1_h2'}, "Passphrase"),
React.DOM.div({'key':'account_1_div'}, [
React.DOM.p({'key':'account_1_p'}, "")