Default order and custom icons for status
diff --git a/views/ngXosViews/serviceGrid/src/js/main.js b/views/ngXosViews/serviceGrid/src/js/main.js
index c52ef9f..88a0f95 100644
--- a/views/ngXosViews/serviceGrid/src/js/main.js
+++ b/views/ngXosViews/serviceGrid/src/js/main.js
@@ -34,7 +34,18 @@
{
label: 'Status',
prop: 'status',
- type: 'boolean',
+ type: 'icon',
+ formatter: item => {
+ let status = parseInt(item.backend_status.match(/^[0-9]/)[0]);
+ switch(status){
+ case 0:
+ return 'time';
+ case 1:
+ return 'ok';
+ case 2:
+ return 'remove';
+ }
+ }
},
{
label: 'Name',
@@ -52,7 +63,9 @@
}
],
filter: 'field',
- order: true
+ order: {
+ field: 'name'
+ }
};
// retrieving user list