|
|
@ -11,12 +11,14 @@
|
|
|
|
templateName: 'device-pairing-dialog',
|
|
|
|
templateName: 'device-pairing-dialog',
|
|
|
|
initialize() {
|
|
|
|
initialize() {
|
|
|
|
this.pubKeyRequests = [];
|
|
|
|
this.pubKeyRequests = [];
|
|
|
|
|
|
|
|
this.reset();
|
|
|
|
|
|
|
|
this.render();
|
|
|
|
|
|
|
|
this.showView();
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
reset() {
|
|
|
|
this.pubKey = null;
|
|
|
|
this.pubKey = null;
|
|
|
|
this.accepted = false;
|
|
|
|
this.accepted = false;
|
|
|
|
this.isListening = false;
|
|
|
|
this.isListening = false;
|
|
|
|
this.view = '';
|
|
|
|
|
|
|
|
this.render();
|
|
|
|
|
|
|
|
this.showView();
|
|
|
|
|
|
|
|
},
|
|
|
|
},
|
|
|
|
events: {
|
|
|
|
events: {
|
|
|
|
'click #startPairing': 'startReceivingRequests',
|
|
|
|
'click #startPairing': 'startReceivingRequests',
|
|
|
@ -47,7 +49,7 @@
|
|
|
|
},
|
|
|
|
},
|
|
|
|
stopReceivingRequests() {
|
|
|
|
stopReceivingRequests() {
|
|
|
|
this.trigger('stopReceivingRequests');
|
|
|
|
this.trigger('stopReceivingRequests');
|
|
|
|
this.isListening = false;
|
|
|
|
this.reset();
|
|
|
|
this.showView();
|
|
|
|
this.showView();
|
|
|
|
},
|
|
|
|
},
|
|
|
|
requestReceived(secondaryDevicePubKey) {
|
|
|
|
requestReceived(secondaryDevicePubKey) {
|
|
|
|