refactor(storidge): split cluster and node status badge filter
This commit is contained in:
@@ -19,7 +19,15 @@ angular.module('extension.storidge')
|
||||
var status = _.toLower(text);
|
||||
if (status === 'maintenance') {
|
||||
return 'orange-icon';
|
||||
} else if (status === 'alert') {
|
||||
}
|
||||
return 'green-icon';
|
||||
};
|
||||
})
|
||||
.filter('clusterStatusBadge', function () {
|
||||
'use strict';
|
||||
return function (text) {
|
||||
var status = _.toLower(text);
|
||||
if (status === 'alert') {
|
||||
return 'red-icon';
|
||||
}
|
||||
return 'green-icon';
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Status</td>
|
||||
<td><i class="fa fa-heartbeat space-right {{ clusterInfo.Status | nodeStatusBadge }}"></i> {{ clusterInfo.Status }}</td>
|
||||
<td><i class="fa fa-heartbeat space-right {{ clusterInfo.Status | clusterStatusBadge }}"></i> {{ clusterInfo.Status }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Version</td>
|
||||
|
||||
Reference in New Issue
Block a user