|
14 | 14 |
|
15 | 15 | <div class="col-md col-sm-12 col-xs-12 text-right">
|
16 | 16 | <div row items-center justify-end>
|
17 |
| - <q-btn outline color="vgreen" icon="fas fa-user-plus" class="q-mt-sm q-mx-xs" @click="addNodeDialog = true" v-if="identity.account_name && !identity.account_added" label="Add" > |
| 17 | + <q-btn outline color="vgreen" icon="fas fa-user-plus" class="q-mt-sm q-mx-xs" @click="addNode()" v-if="identity.account_name && !identity.account_added" label="Add" > |
18 | 18 | <q-tooltip content-class="bg-vgreen text-vdark" content-style="font-size: 16px" :offset="[10, 10]">Add the node</q-tooltip>
|
19 | 19 | </q-btn>
|
20 | 20 | <q-btn disabled outline color="vgreen" icon="fas fa-user-plus" class="q-mt-sm q-mx-xs" v-if="identity.account_name && identity.account_added" label="Added" />
|
21 | 21 |
|
22 |
| - <q-btn outline color="vgreen" icon="fas fa-address-card" class="q-mt-sm q-mx-xs text-vgrey" @click="registerNodeDialog = true" v-if="identity.account_name && !identity.account_registered" label="Register" > |
| 22 | + <q-btn outline color="vgreen" icon="fas fa-address-card" class="q-mt-sm q-mx-xs text-vgrey" @click="registerNode()" v-if="identity.account_name && !identity.account_registered" label="Register" > |
23 | 23 | <q-tooltip content-class="bg-vgreen text-vdark" content-style="font-size: 16px" :offset="[10, 10]">Register the node</q-tooltip>
|
24 | 24 | </q-btn>
|
25 | 25 | <q-btn disabled outline color="vgreen" icon="fas fa-address-card" class="q-mt-sm q-mx-xs text-vgrey" v-if="identity.account_name && identity.account_registered" label="Registered" />
|
|
250 | 250 | </q-card>
|
251 | 251 | </q-dialog>
|
252 | 252 | <!-- Add node dialog -->
|
253 |
| - <q-dialog v-model="addNodeDialog"> |
| 253 | + <!-- <q-dialog v-model="addNodeDialog"> |
254 | 254 | <q-card style="min-width: 50vw; max-width: 70vw;" class="bg-vgrey">
|
255 | 255 | <q-card-section>
|
256 | 256 | <div class="text-h6">Add the node into the distribution contract</div>
|
|
266 | 266 | <q-btn flat label="Add" color="vblack" @click=addNode />
|
267 | 267 | </q-card-actions>
|
268 | 268 | </q-card>
|
269 |
| - </q-dialog> |
| 269 | + </q-dialog> --> |
270 | 270 | <!-- register node dialog -->
|
271 |
| - <q-dialog v-model="registerNodeDialog"> |
| 271 | + <!-- <q-dialog v-model="registerNodeDialog"> |
272 | 272 | <q-card style="min-width: 50vw; max-width: 70vw;" class="bg-vgrey">
|
273 | 273 | <q-card-section>
|
274 | 274 | <div class="text-h6">Register the node into the voting contract</div>
|
|
284 | 284 | <q-btn flat label="Register" color="vblack" @click=registerNode />
|
285 | 285 | </q-card-actions>
|
286 | 286 | </q-card>
|
287 |
| - </q-dialog> |
| 287 | + </q-dialog> --> |
288 | 288 | <!-- Private key update dialog -->
|
289 | 289 | <q-dialog v-model="privateDialog" @show="$refs.input.focus()">
|
290 | 290 | <q-card style="min-width: 50vw; max-width: 70vw;" class="bg-vgrey">
|
@@ -433,10 +433,10 @@ export default {
|
433 | 433 | nodes: [],
|
434 | 434 | voting_list: [],
|
435 | 435 | privateDialog: false,
|
436 |
| - addNodeDialog: false, |
437 |
| - addNodeMessage: '', |
438 |
| - registerNodeDialog: false, |
439 |
| - registerNodeMessage: '', |
| 436 | + // addNodeDialog: false, |
| 437 | + // addNodeMessage: '', |
| 438 | + // registerNodeDialog: false, |
| 439 | + // registerNodeMessage: '', |
440 | 440 | errorDialog: false,
|
441 | 441 | errorMessage: '',
|
442 | 442 | resultDialog: false,
|
@@ -773,8 +773,9 @@ export default {
|
773 | 773 | blocksBehind: 3,
|
774 | 774 | expireSeconds: 30
|
775 | 775 | })
|
776 |
| - this.addNodeMessage = 'Transaction executed successfully!\n\n' |
777 |
| - this.addNodeMessage += JSON.stringify(result, null, 2) |
| 776 | + this.resultMessage = 'Transaction executed successfully!\n\n' |
| 777 | + this.resultMessage += JSON.stringify(result, null, 2) |
| 778 | + this.resultDialog = true |
778 | 779 | this.refresh()
|
779 | 780 | } catch (error) {
|
780 | 781 | this.errorMessage = error
|
@@ -806,8 +807,9 @@ export default {
|
806 | 807 | blocksBehind: 3,
|
807 | 808 | expireSeconds: 30
|
808 | 809 | })
|
809 |
| - this.registerNodeMessage = 'Transaction executed successfully!\n\n' |
810 |
| - this.registerNodeMessage += JSON.stringify(result, null, 2) |
| 810 | + this.resultMessage = 'Transaction executed successfully!\n\n' |
| 811 | + this.resultMessage += JSON.stringify(result, null, 2) |
| 812 | + this.resultDialog = true |
811 | 813 | this.refresh()
|
812 | 814 | } catch (error) {
|
813 | 815 | this.errorMessage = error
|
|
0 commit comments