Handling errors
diff --git a/views/ngXosViews/truckroll/src/js/main.js b/views/ngXosViews/truckroll/src/js/main.js
index 69c0c4f..6d72b5b 100644
--- a/views/ngXosViews/truckroll/src/js/main.js
+++ b/views/ngXosViews/truckroll/src/js/main.js
@@ -43,6 +43,7 @@
// clean previous tests
delete this.truckroll.result;
delete this.truckroll.is_synced;
+ delete this.truckroll.result_code;
const test = new Truckroll(this.truckroll);
this.loader = true;
diff --git a/views/ngXosViews/truckroll/src/templates/truckroll.tpl.html b/views/ngXosViews/truckroll/src/templates/truckroll.tpl.html
index 9bbdb4c..8f22631 100644
--- a/views/ngXosViews/truckroll/src/templates/truckroll.tpl.html
+++ b/views/ngXosViews/truckroll/src/templates/truckroll.tpl.html
@@ -73,24 +73,22 @@
<div class="loader"></div>
</div>
</div>
- <section ng-hide="!vm.truckroll.is_synced">
- <div class="row" style="margin-top: 20px">
- <div class="col-xs-12" ng-hide="!vm.truckroll.result_code">
- <label>Result Code</label>
- </div>
- <div class="col-xs-12">
- <pre>{{vm.truckroll.result_code}}</pre>
- </div>
+ <div class="row" ng-hide="!vm.truckroll.result_code">
+ <div class="col-xs-12">
+ <label>Result Code</label>
</div>
- <div class="row">
- <div class="col-xs-12">
- <label>
- Result:
- </label>
- </div>
- <div class="col-xs-12" ng-hide="!vm.truckroll.result">
- <pre>{{vm.truckroll.result}}</pre>
- </div>
+ <div class="col-xs-12">
+ <pre>{{vm.truckroll.result_code}}</pre>
</div>
- </section>
+ </div>
+ <div class="row" ng-hide="!vm.truckroll.result">
+ <div class="col-xs-12">
+ <label>
+ Result:
+ </label>
+ </div>
+ <div class="col-xs-12">
+ <pre>{{vm.truckroll.result}}</pre>
+ </div>
+ </div>
</form>
\ No newline at end of file