mirror of
https://github.com/espocrm/espocrm.git
synced 2026-06-28 06:56:05 +00:00
ref
This commit is contained in:
@@ -1,5 +1,13 @@
|
||||
<div>
|
||||
<div class="top-group-string-container">
|
||||
{{{conditionGroup}}}
|
||||
{{#if isNotEmpty}}
|
||||
<div>
|
||||
<div class="top-group-string-container">
|
||||
{{{conditionGroup}}}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{{else}}
|
||||
{{#if isSet}}
|
||||
<span class="none-value">{{translate 'None'}}</span>
|
||||
{{else}}
|
||||
<span class="loading-value"></span>
|
||||
{{/if}}
|
||||
{{/if}}
|
||||
|
||||
@@ -36,6 +36,13 @@ export default class extends BaseFieldView {
|
||||
detailTemplate = 'admin/field-manager/fields/dynamic-logic-conditions/detail'
|
||||
editTemplate = 'admin/field-manager/fields/dynamic-logic-conditions/edit'
|
||||
|
||||
data() {
|
||||
return {
|
||||
isSet: this.model.has(this.name),
|
||||
isNotEmpty: this.conditionGroup && this.conditionGroup.length,
|
||||
};
|
||||
}
|
||||
|
||||
setup() {
|
||||
this.addActionHandler('editConditions', () => this.edit());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user