From a3e289c665405390c077d0b7d18334c1459adbe2 Mon Sep 17 00:00:00 2001 From: cgeek <cem.moreau@gmail.com> Date: Sun, 19 May 2019 12:03:54 +0200 Subject: [PATCH] [fix] Sync: the node could not be selected --- src/views/Sync.vue | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/src/views/Sync.vue b/src/views/Sync.vue index ff9f22b..4b3649f 100644 --- a/src/views/Sync.vue +++ b/src/views/Sync.vue @@ -18,8 +18,7 @@ <div class="form-group"> <form> <label for="node">{{ $t('init.node.select') }}</label> - <select class="custom-select" id="node" name="node"><!-- [(ngModel)]="model.node" --> - <option value="g1.cgeek.fr:443">g1.cgeek.fr:443 ({{ $t('init.node.g1.currency') }})</option> + <select class="custom-select" id="node" v-model="node"> <option value="g1.duniter.org:443">g1.duniter.org:443 ({{ $t('init.node.g1.currency') }})</option> <option value="g1-test.duniter.org:443">g1-test.duniter.org ({{ $t('init.node.gt.currency') }}) </option> @@ -90,11 +89,7 @@ public sandbox = 0 public peers = 0 public syncStarted = false - public model: { - node: string - } = { - node: 'g1.cgeek.fr:443' - } + public node = 'g1.duniter.org:443' downloadings: SyncChunk[] = [] p2pCandidates: { [hash: string]: P2PDataCandidateType } = {} @@ -110,7 +105,7 @@ this.saved = 0 this.sandbox = 0 this.peers = 0 - await this.$webmin.synchronize(this.model.node) + await this.$webmin.synchronize(this.node) } async mounted() { -- GitLab