ソースを参照

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) {


読み込み中…
キャンセル
保存