188
188
189
189
<!-- Error dialog -->
190
190
<q-dialog v-model =" errorDialog" >
191
- <q-card style =" min-width : 500 px " class =" bg-negative text-vgrey" >
191
+ <q-card style =" min-width : 50 vw ; max-width : 70 vw ; " class =" bg-negative text-vgrey" >
192
192
<q-card-section >
193
193
<div class =" text-h6" >Error occured</div >
194
194
</q-card-section >
195
195
<q-card-section >
196
- {{ errorMessage }}
196
+ < pre > {{ errorMessage }}</ pre >
197
197
</q-card-section >
198
198
<q-card-actions align =" right" >
199
199
<q-btn flat label =" Got it" v-close-popup />
202
202
</q-dialog >
203
203
<!-- Result dialog -->
204
204
<q-dialog v-model =" resultDialog" >
205
- <q-card style =" min-width : 500 px ; max-width : 60 vw ;" class =" bg-vgrey" >
205
+ <q-card style =" min-width : 50 vw ; max-width : 70 vw ;" class =" bg-vgrey" >
206
206
<q-card-section >
207
207
<div class =" text-h6" >Result</div >
208
208
</q-card-section >
216
216
</q-dialog >
217
217
<!-- voted dialog -->
218
218
<q-dialog v-model =" votedDialog" >
219
- <q-card style =" min-width : 600 px ; max-width : 60 vw ;" class =" bg-vgrey q-ma-sm" >
219
+ <q-card style =" min-width : 50 vw ; max-width : 70 vw ;" class =" bg-vgrey q-ma-sm" >
220
220
<q-card-section >
221
221
<div class =" text-h6" >Votes</div >
222
222
</q-card-section >
251
251
</q-dialog >
252
252
<!-- Add node dialog -->
253
253
<q-dialog v-model =" addNodeDialog" >
254
- <q-card style =" min-width : 500 px ; max-width : 60 vw ;" class =" bg-vgrey" >
254
+ <q-card style =" min-width : 50 vw ; max-width : 70 vw ;" class =" bg-vgrey" >
255
255
<q-card-section >
256
256
<div class =" text-h6" >Add the node into the distribution contract</div >
257
257
</q-card-section >
269
269
</q-dialog >
270
270
<!-- register node dialog -->
271
271
<q-dialog v-model =" registerNodeDialog" >
272
- <q-card style =" min-width : 500 px ; max-width : 60 vw ;" class =" bg-vgrey" >
272
+ <q-card style =" min-width : 50 vw ; max-width : 70 vw ;" class =" bg-vgrey" >
273
273
<q-card-section >
274
274
<div class =" text-h6" >Register the node into the voting contract</div >
275
275
</q-card-section >
287
287
</q-dialog >
288
288
<!-- Private key update dialog -->
289
289
<q-dialog v-model =" privateDialog" @show =" $refs.input.focus()" >
290
- <q-card style =" min-width : 500 px " class =" bg-vgrey" >
290
+ <q-card style =" min-width : 50 vw ; max-width : 70 vw ; " class =" bg-vgrey" >
291
291
<q-card-section >
292
292
<div class =" text-h6" >Enter your private key</div >
293
293
</q-card-section >
310
310
</q-dialog >
311
311
<!-- Help dialog -->
312
312
<q-dialog v-model =" helpDialog" >
313
- <q-card style =" min-width : 700 px ; max-width : 60 vw ;" class =" bg-vgrey" >
313
+ <q-card style =" min-width : 50 vw ; max-width : 70 vw ;" class =" bg-vgrey" >
314
314
<q-card-section >
315
315
<div class =" text-h6" >Help</div >
316
316
</q-card-section >
345
345
</q-dialog >
346
346
<!-- Voting rules dialog -->
347
347
<q-dialog v-model =" rulesDialog" >
348
- <q-card style =" min-width : 700 px ; max-width : 60 vw ;" class =" bg-vgrey" >
348
+ <q-card style =" min-width : 50 vw ; max-width : 70 vw ;" class =" bg-vgrey" >
349
349
<q-card-section >
350
350
<div class =" text-h6" >Voting rules</div >
351
351
</q-card-section >
@@ -477,6 +477,8 @@ export default {
477
477
}
478
478
} catch (error) {
479
479
this .errorMessage = error
480
+ this .errorMessage += ' \n\n '
481
+ this .errorMessage += error .stack
480
482
this .errorDialog = true
481
483
}
482
484
} else {
@@ -499,6 +501,8 @@ export default {
499
501
}
500
502
} catch (error) {
501
503
this .errorMessage = error
504
+ this .errorMessage += ' \n\n '
505
+ this .errorMessage += error .stack
502
506
this .errorDialog = true
503
507
}
504
508
} else {
@@ -522,6 +526,8 @@ export default {
522
526
}
523
527
} catch (error) {
524
528
this .errorMessage = error
529
+ this .errorMessage += ' \n\n '
530
+ this .errorMessage += error .stack
525
531
this .errorDialog = true
526
532
}
527
533
} else {
@@ -541,6 +547,8 @@ export default {
541
547
})
542
548
} catch (error) {
543
549
this .errorMessage = error
550
+ this .errorMessage += ' \n\n '
551
+ this .errorMessage += error .stack
544
552
this .errorDialog = true
545
553
}
546
554
},
@@ -569,6 +577,8 @@ export default {
569
577
}
570
578
} catch (error) {
571
579
this .errorMessage = error
580
+ this .errorMessage += ' \n\n '
581
+ this .errorMessage += error .stack
572
582
this .errorDialog = true
573
583
}
574
584
},
@@ -589,6 +599,8 @@ export default {
589
599
}
590
600
} catch (error) {
591
601
this .errorMessage = error
602
+ this .errorMessage += ' \n\n '
603
+ this .errorMessage += error .stack
592
604
this .errorDialog = true
593
605
}
594
606
} else {
@@ -616,6 +628,8 @@ export default {
616
628
})
617
629
} catch (error) {
618
630
this .errorMessage = error
631
+ this .errorMessage += ' \n\n '
632
+ this .errorMessage += error .stack
619
633
this .errorDialog = true
620
634
}
621
635
} else {
@@ -648,6 +662,8 @@ export default {
648
662
}
649
663
} catch (error) {
650
664
this .errorMessage = error
665
+ this .errorMessage += ' \n\n '
666
+ this .errorMessage += error .stack
651
667
this .errorDialog = true
652
668
}
653
669
} else {
@@ -664,6 +680,8 @@ export default {
664
680
this .identity .balance = balance[0 ] ? balance[0 ] : ' 0 VTX'
665
681
} catch (error) {
666
682
this .errorMessage = error
683
+ this .errorMessage += ' \n\n '
684
+ this .errorMessage += error .stack
667
685
this .errorDialog = true
668
686
}
669
687
} else {
@@ -680,6 +698,8 @@ export default {
680
698
this .identify (this .identity .public_key )
681
699
} catch (error) {
682
700
this .errorMessage = error
701
+ this .errorMessage += ' \n\n '
702
+ this .errorMessage += error .stack
683
703
this .errorDialog = true
684
704
}
685
705
},
@@ -712,6 +732,8 @@ export default {
712
732
this .forceFileDownload (response)
713
733
}).catch ((error ) => {
714
734
this .errorMessage = error
735
+ this .errorMessage += ' \n\n '
736
+ this .errorMessage += error .stack
715
737
this .errorDialog = true
716
738
})
717
739
}
@@ -756,6 +778,8 @@ export default {
756
778
this .refresh ()
757
779
} catch (error) {
758
780
this .errorMessage = error
781
+ this .errorMessage += ' \n\n '
782
+ this .errorMessage += error .stack
759
783
this .errorDialog = true
760
784
}
761
785
},
@@ -787,6 +811,8 @@ export default {
787
811
this .refresh ()
788
812
} catch (error) {
789
813
this .errorMessage = error
814
+ this .errorMessage += ' \n\n '
815
+ this .errorMessage += error .stack
790
816
this .errorDialog = true
791
817
}
792
818
},
@@ -814,6 +840,8 @@ export default {
814
840
}).catch ((error ) => {
815
841
this .errorDialog = true
816
842
this .errorMessage = error
843
+ this .errorMessage += ' \n\n '
844
+ this .errorMessage += error .stack
817
845
})
818
846
})
819
847
},
@@ -837,6 +865,8 @@ export default {
837
865
}
838
866
} catch (error) {
839
867
this .errorMessage = error
868
+ this .errorMessage += ' \n\n '
869
+ this .errorMessage += error .stack
840
870
this .errorDialog = true
841
871
}
842
872
},
@@ -880,6 +910,8 @@ export default {
880
910
} catch (error) {
881
911
this .errorDialog = true
882
912
this .errorMessage = error
913
+ this .errorMessage += ' \n\n '
914
+ this .errorMessage += error .stack
883
915
}
884
916
},
885
917
async retreiveReward () {
@@ -908,6 +940,8 @@ export default {
908
940
setInterval (() => this .refresher (), 3000 )
909
941
} catch (error) {
910
942
this .errorMessage = error
943
+ this .errorMessage += ' \n\n '
944
+ this .errorMessage += error .stack
911
945
this .errorDialog = true
912
946
}
913
947
}
0 commit comments