File tree Expand file tree Collapse file tree 3 files changed +7
-3
lines changed
features/linodes/ListLinodes Expand file tree Collapse file tree 3 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -16,6 +16,7 @@ import ContentCopyIcon from 'material-ui-icons/ContentCopy';
16
16
17
17
import CallToAction from 'material-ui-icons/CallToAction' ;
18
18
import Replay from 'material-ui-icons/Replay' ;
19
+ import CloudCircle from 'material-ui-icons/CloudCircle' ;
19
20
20
21
import ActionMenu from 'src/components/ActionMenu' ;
21
22
import Tag from 'src/components/Tag' ;
@@ -117,7 +118,10 @@ class LinodeCard extends React.Component<Props & WithStyles<CSSClasses> > {
117
118
< div className = { classes . cardSection } >
118
119
< Grid container >
119
120
< Grid item className = "tac" xs = { 2 } >
120
- < img src = { distroIcons [ image . vendor ] } className = { classes . distroIcon } />
121
+ { image . vendor ?
122
+ < img src = { distroIcons [ image . vendor ] } className = { classes . distroIcon } />
123
+ : < CloudCircle className = { classes . distroIcon } />
124
+ }
121
125
</ Grid >
122
126
< Grid item xs = { 9 } >
123
127
< Typography variant = "subheading" >
Original file line number Diff line number Diff line change @@ -507,7 +507,7 @@ const defaultState: Linode.AppState = {
507
507
created_by : 'linode' ,
508
508
deprecated : false ,
509
509
id : 'linode/Ubuntu16.04LTS' ,
510
- vendor : 'Ubuntu' ,
510
+ vendor : null ,
511
511
size : 800 ,
512
512
type : 'manual' ,
513
513
created : '2016-04-22T18:11:29' ,
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ namespace Linode {
8
8
is_public : Boolean ;
9
9
size : number ;
10
10
created_by : string ;
11
- vendor : string ;
11
+ vendor : string | null ;
12
12
deprecated : Boolean ;
13
13
}
14
14
You can’t perform that action at this time.
0 commit comments