array: none if empty

This commit is contained in:
yuri
2017-03-01 12:18:54 +02:00
parent e6f6e0fcf1
commit dedef4b36f
2 changed files with 3 additions and 2 deletions
+1 -1
View File
@@ -1 +1 @@
{{{value}}}
{{#unless isEmpty}}{{{value}}}{{else}}{{translate 'None'}}{{/unless}}
+2 -1
View File
@@ -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));
},