array: none if empty
This commit is contained in:
@@ -1 +1 @@
|
||||
{{{value}}}
|
||||
{{#unless isEmpty}}{{{value}}}{{else}}{{translate 'None'}}{{/unless}}
|
||||
|
||||
@@ -50,7 +50,8 @@ Espo.define('views/fields/array', ['views/fields/base', 'lib!Selectize'], functi
|
||||
selected: this.selected,
|
||||
translatedOptions: this.translatedOptions,
|
||||
hasOptions: this.params.options ? true : false,
|
||||
itemHtmlList: itemHtmlList
|
||||
itemHtmlList: itemHtmlList,
|
||||
isEmpty: (this.selected || []).length === 0
|
||||
}, Dep.prototype.data.call(this));
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user