|
|
@ -161,12 +161,15 @@
|
|
|
|
if (pubKeys && pubKeys.length > 0) {
|
|
|
|
if (pubKeys && pubKeys.length > 0) {
|
|
|
|
pubKeys.forEach(x => {
|
|
|
|
pubKeys.forEach(x => {
|
|
|
|
const name = this.getPubkeyName(x);
|
|
|
|
const name = this.getPubkeyName(x);
|
|
|
|
const li = $('<li>').html(`${name} - `);
|
|
|
|
const li = $('<li>').html(name);
|
|
|
|
|
|
|
|
if (window.lokiFeatureFlags.multiDeviceUnpairing) {
|
|
|
|
const link = $('<a>')
|
|
|
|
const link = $('<a>')
|
|
|
|
.text('Unpair')
|
|
|
|
.text('Unpair')
|
|
|
|
.attr('href', '#');
|
|
|
|
.attr('href', '#');
|
|
|
|
link.on('click', () => this.requestUnpairDevice(x));
|
|
|
|
link.on('click', () => this.requestUnpairDevice(x));
|
|
|
|
|
|
|
|
li.append(' - ');
|
|
|
|
li.append(link);
|
|
|
|
li.append(link);
|
|
|
|
|
|
|
|
}
|
|
|
|
this.$('#pairedPubKeys').append(li);
|
|
|
|
this.$('#pairedPubKeys').append(li);
|
|
|
|
});
|
|
|
|
});
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|