소스 검색

poll for verified contacts so page refreshes upon verification

pull/32/head
Jonathan Cobb 4 년 전
부모
커밋
3b84fc1a06
1개의 변경된 파일15개의 추가작업 그리고 0개의 파일을 삭제
  1. +15
    -0
      src/account/NewNetworkPage.vue

+ 15
- 0
src/account/NewNetworkPage.vue 파일 보기

@@ -425,6 +425,7 @@
creating: false
},
verifiedContacts: null,
verifiedContactRefresher: null,
anyContacts: null,
firstContact: null,
payMethods: null,
@@ -774,6 +775,20 @@
this.anyContacts = this.hasAnyContacts(p);
this.verifiedContacts = this.hasVerifiedContact(p);
this.firstContact = this.getFirstContact(p);
if (!this.verifiedContacts) {
if (this.verifiedContactRefresher === null) {
const vue = this;
const currentUser = util.currentUser();
this.verifiedContactRefresher = window.setInterval(() => {
vue.getPolicyByUserId({userId: currentUser.uuid, messages: vue.messages, errors: vue.errors});
}, 5000);
}
} else {
if (this.verifiedContactRefresher !== null) {
window.clearInterval(this.verifiedContactRefresher);
this.verifiedContactRefresher = null;
}
}
},
actionStatus (status) {
if (status.success) {


불러오는 중...
취소
저장