Browse Source

Replace unnecessarily escaped template string with template literal.

pull/3202/head
TheGoddessInari 6 years ago
parent
commit
522c0d1ba4
No known key found for this signature in database
GPG Key ID: 1209B1B7632D69A
  1. 2
      app/view/main/Main.js

2
app/view/main/Main.js

@ -153,7 +153,7 @@ Ext.define('Rambox.view.main.Main', {
xtype: 'templatecolumn'
,width: 50
,variableRowHeight: true
,tpl: '<img src="{[ values.type !== \"custom\" ? \"resources/icons/\"+values.logo : (values.logo == \"\" ? \"resources/icons/custom.png\" : values.logo) ]}" data-qtip="{type:capitalize}" width="32" style="{[ values.enabled ? \"-webkit-filter: grayscale(0)\" : \"-webkit-filter: grayscale(1)\" ]}" />'
,tpl: `<img src='{[ values.type !== "custom" ? "resources/icons/"+values.logo : (values.logo == "" ? "resources/icons/custom.png" : values.logo) ]}' data-qtip='{type:capitalize}' width='32' style='{[ values.enabled ? "-webkit-filter: grayscale(0)" : "-webkit-filter: grayscale(1)" ]}' />`
}
,{
dataIndex: 'name'

Loading…
Cancel
Save