Skip to content

Commit 533bd30

Browse files
GilbertCherrieelsamaryv
authored andcommitted
Update the gtl table icons
1 parent 9968ce1 commit 533bd30

File tree

2 files changed

+23
-22
lines changed

2 files changed

+23
-22
lines changed

app/javascript/components/miq-data-table/miq-table-cell.jsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ const MiqTableCell = ({
7777
};
7878

7979
const returnIcon = (icon, style, styledIconClass, longerTextClass, index = undefined) => {
80+
icon = 'carbon--Migrate';
8081
const extraProps = {};
8182
if (index !== undefined) {
8283
extraProps.key = index.toString();

lib/gtl_formatter.rb

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -35,28 +35,28 @@ class GtlFormatter
3535
}.freeze
3636

3737
NORMALIZED_STATE_ICON = {
38-
'archived' => 'fa fa-archive',
39-
'orphaned' => 'ff ff-orphaned',
40-
'retired' => 'fa fa-clock-o',
41-
'non_operational' => 'fa fa-exclamation',
42-
'suspended' => 'pficon pficon-asleep',
43-
'standby' => 'pficon pficon-asleep',
44-
'paused' => 'pficon pficon-asleep',
45-
'disconnecting' => 'pficon pficon-unplugged',
46-
'image_locked' => 'pficon pficon-locked',
47-
'migrating' => 'pficon pficon-migration',
48-
'shelved' => 'pficon pficon-pending',
49-
'shelved_offloaded' => 'pficon pficon-pending',
50-
'reboot_in_progress' => 'pficon pficon-on',
51-
'wait_for_launch' => 'pficon pficon-asleep',
52-
'on' => 'pficon pficon-on',
53-
'never' => 'pficon pficon-off',
54-
'terminated' => 'pficon pficon-off',
55-
'off' => 'pficon pficon-off',
56-
'template' => 'pficon pficon-template',
57-
'powering_up' => 'pficon pficon-on',
58-
'powering_down' => 'pficon pficon-off',
59-
'unknown' => 'pficon pficon-unknown',
38+
'archived' => 'carbon--Box',
39+
'orphaned' => 'carbon--Unlink',
40+
'retired' => 'carbon--Time',
41+
'non_operational' => 'carbon--WarningSquare',
42+
'suspended' => 'carbon--asleep',
43+
'standby' => 'carbon--asleep',
44+
'paused' => 'carbon--asleep',
45+
'disconnecting' => 'carbon--FlashOff',
46+
'image_locked' => 'carbon--Locked',
47+
'migrating' => 'carbon--Migrate',
48+
'shelved' => 'carbon--Hourglass',
49+
'shelved_offloaded' => 'carbon--Hourglass',
50+
'reboot_in_progress' => 'carbon--Power',
51+
'wait_for_launch' => 'carbon--asleep',
52+
'on' => 'carbon--Power',
53+
'never' => 'carbon--Power',
54+
'terminated' => 'carbon--Power',
55+
'off' => 'carbon--Power',
56+
'template' => 'carbon--Template',
57+
'powering_up' => 'carbon--Power',
58+
'powering_down' => 'carbon--Power',
59+
'unknown' => 'carbon--Unknown',
6060
}.freeze
6161

6262
COLUMN_WITH_TIME = %w[

0 commit comments

Comments
 (0)