Handling errors
diff --git a/views/ngXosViews/truckroll/env/default.js b/views/ngXosViews/truckroll/env/default.js
index 65d9e93..d1e41fd 100644
--- a/views/ngXosViews/truckroll/env/default.js
+++ b/views/ngXosViews/truckroll/env/default.js
@@ -8,6 +8,6 @@
module.exports = {
host: 'http://apt088.apt.emulab.net:9999/',
- xoscsrftoken: 'u5DXeMzOmHEQxrkhdJ1YuX3FefBv7Wtx',
- xossessionid: 'z8wjipgmf90l23bqvij6kuj0nhcbwfpx'
+ xoscsrftoken: 'AcDUMSMLenXesxkAmRRfuDrrcm0nfK2R',
+ xossessionid: 'vpfim02rcpr3fcp4uf37l4ffilavr6x7'
};
diff --git a/views/ngXosViews/truckroll/gulp/build.js b/views/ngXosViews/truckroll/gulp/build.js
index 9cba015..a8c04be 100644
--- a/views/ngXosViews/truckroll/gulp/build.js
+++ b/views/ngXosViews/truckroll/gulp/build.js
@@ -98,7 +98,8 @@
inject(
gulp.src([
options.static + 'js/vendor/xosTruckrollVendor.js',
- options.static + 'js/xosTruckroll.js'
+ options.static + 'js/xosTruckroll.js',
+ options.static + 'css/xosTruckroll.css'
]),
{ignorePath: '/../../../xos/core/xoslib'}
)
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