Merge pull request #3642 from codyrancher/colors

Make special case for the 'running' state color
This commit is contained in:
Westly Wright 2019-12-18 09:34:46 -07:00 committed by GitHub
commit abc39cda27
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 2 deletions

View File

@ -4,7 +4,7 @@ import moment from 'moment';
import { downloadFile } from 'shared/utils/download-files';
import ObjectsToCsv from 'objects-to-csv';
export default Resource.extend({
const ClusterScan = Resource.extend({
type: 'clusterScan',
report: 'null',
reportPromise: null,
@ -143,3 +143,7 @@ export default Resource.extend({
},
});
ClusterScan.reopenClass({ stateMap: { 'running': { color: 'text-info' } } });
export default ClusterScan;

View File

@ -174,7 +174,7 @@ const defaultStateMap = {
},
'running': {
icon: 'icon icon-circle-o',
color: 'text-info'
color: 'text-success'
},
'starting': {
icon: 'icon icon-adjust',