|
|
@ -97,11 +97,11 @@ var pEpPrivacyStatus = { |
|
|
|
}); |
|
|
|
}, |
|
|
|
|
|
|
|
executeHandler(handler) { |
|
|
|
executeHandler(handler, other) { |
|
|
|
return () => { |
|
|
|
pEpController.synchronise(handler()); |
|
|
|
pEpController.synchronise(handler(other)); |
|
|
|
pEpController.log.info(`Notify pEp-trust-changed for ${this.caller}`); |
|
|
|
Services.obs.notifyObservers(null, "pEp-trust-changed", this.caller); |
|
|
|
Services.obs.notifyObservers(null, "pEp-trust-changed", JSON.stringify({ caller: this.caller, other })); |
|
|
|
window.close(); |
|
|
|
}; |
|
|
|
}, |
|
|
@ -138,8 +138,8 @@ var pEpPrivacyStatus = { |
|
|
|
}, |
|
|
|
handlers: { |
|
|
|
// Reset Trust is apparently not required.
|
|
|
|
// "reset-trust": this.executeHandler(this.handshake.actionResetTrust.bind(this.handshake, otherIdentity)),
|
|
|
|
"button#reset-user": this.executeHandler(this.handshake.actionResetUser.bind(this.handshake, otherIdentity)), |
|
|
|
// "reset-trust": this.executeHandler(this.handshake.actionResetTrust.bind(this.handshake), otherIdentity),
|
|
|
|
"button#reset-user": this.executeHandler(this.handshake.actionResetUser.bind(this.handshake), otherIdentity), |
|
|
|
}, |
|
|
|
}); |
|
|
|
} else if (color == "yellow") { |
|
|
@ -173,9 +173,9 @@ var pEpPrivacyStatus = { |
|
|
|
"div#Trustwords": "none", |
|
|
|
}, |
|
|
|
handlers: { |
|
|
|
"button#accept-trust": this.executeHandler(this.handshake.actionTrustKey.bind(this.handshake, otherIdentity)), |
|
|
|
"button#reject-trust": this.executeHandler(this.handshake.actionMistrustKey.bind(this.handshake, otherIdentity)), |
|
|
|
"button#reset-user": this.executeHandler(this.handshake.actionResetUser.bind(this.handshake, otherIdentity)), |
|
|
|
"button#accept-trust": this.executeHandler(this.handshake.actionTrustKey.bind(this.handshake), otherIdentity), |
|
|
|
"button#reject-trust": this.executeHandler(this.handshake.actionMistrustKey.bind(this.handshake), otherIdentity), |
|
|
|
"button#reset-user": this.executeHandler(this.handshake.actionResetUser.bind(this.handshake), otherIdentity), |
|
|
|
"checkbox#full-trustwords": |
|
|
|
this.executeHandler2(this.handshake.fullTrustwords, this.ownIdentity, otherIdentity), |
|
|
|
"menulist#language-selector": |
|
|
@ -192,7 +192,7 @@ var pEpPrivacyStatus = { |
|
|
|
adjustments: { |
|
|
|
}, |
|
|
|
handlers: { |
|
|
|
"button#reset-user": this.executeHandler(this.handshake.actionResetUser.bind(this.handshake, otherIdentity)), |
|
|
|
"button#reset-user": this.executeHandler(this.handshake.actionResetUser.bind(this.handshake), otherIdentity), |
|
|
|
}, |
|
|
|
}); |
|
|
|
} |
|
|
|