File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed
Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change 4949 < paper-button raised on-tap ="{{ cancelEditing }} "> {{ 'cancel' | $$ }}</ paper-button >
5050 </ div >
5151 < div id ='savedDescription ' hidden? ='{{ editing }} ' on-tap ='{{ editDescription }} '>
52- {{ model.globalSettings.description || ('nameThisDevice' | $$ ) }}
52+ {{ showDescription( model.globalSettings.description) }}
5353 < core-icon icon ='create '> </ core-icon >
5454 </ div >
5555 </ template >
Original file line number Diff line number Diff line change @@ -18,5 +18,8 @@ Polymer({
1818 this . model = ui_context . model ;
1919 this . editing = false ;
2020 this . descriptionInput = '' ;
21+ } ,
22+ showDescription : function ( description :string ) {
23+ return description ? description : ui_context . ui . i18n_t ( 'nameThisDevice' ) ;
2124 }
2225} ) ;
You can’t perform that action at this time.
0 commit comments