fix_bug_create_device
This commit is contained in:
parent
1952ade39c
commit
f00faa1841
@ -127,27 +127,27 @@ export default class ModalService {
|
|||||||
const service = await Services.getInstance();
|
const service = await Services.getInstance();
|
||||||
const localAddress = await service.getDeviceAddress();
|
const localAddress = await service.getDeviceAddress();
|
||||||
for (const member of members) {
|
for (const member of members) {
|
||||||
for (const address of member['sp_addresses']) {
|
if (member.sp_addresses) {
|
||||||
if (address !== localAddress) {
|
for (const address of member.sp_addresses) {
|
||||||
this.paired_addresses.push(address);
|
if (address !== localAddress) {
|
||||||
|
this.paired_addresses.push(address);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
this.processId = processId;
|
this.processId = processId;
|
||||||
this.stateId = stateId;
|
this.stateId = stateId;
|
||||||
|
|
||||||
|
if (members[0].sp_addresses.length === 1) {
|
||||||
if (members.sp_addresses.length === 1) {
|
|
||||||
await this.injectCreationModal(members);
|
await this.injectCreationModal(members);
|
||||||
this.modal = document.getElementById('creation-modal');
|
this.modal = document.getElementById('creation-modal');
|
||||||
console.log("LENGTH:", members.sp_addresses.length);
|
console.log("LENGTH:", members[0].sp_addresses.length);
|
||||||
} else {
|
} else {
|
||||||
await this.injectModal(members);
|
await this.injectModal(members);
|
||||||
this.modal = document.getElementById('modal');
|
this.modal = document.getElementById('modal');
|
||||||
console.log("LENGTH:", members.sp_addresses.length);
|
console.log("LENGTH:", members[0].sp_addresses.length);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
if (this.modal) this.modal.style.display = 'flex';
|
if (this.modal) this.modal.style.display = 'flex';
|
||||||
|
|
||||||
// Close modal when clicking outside of it
|
// Close modal when clicking outside of it
|
||||||
|
Loading…
x
Reference in New Issue
Block a user