Fix empty results for localfile logs config

This commit is contained in:
Jesús González 2019-04-12 08:55:06 +02:00
parent ebfecb8804
commit 320a485c43

View File

@ -5,8 +5,9 @@
<wz-no-config flex error="currentConfig['logcollector-localfile']"
ng-if="currentConfig['logcollector-localfile'] && isString(currentConfig['logcollector-localfile'])">
</wz-no-config>
<wz-no-config flex error="'not-present'"
ng-if="currentConfig['logcollector-localfile'] && !isString(currentConfig['logcollector-localfile']) && !currentConfig['logcollector-localfile']['localfile-logs']">
ng-if="currentConfig['logcollector-localfile'] && !isString(currentConfig['logcollector-localfile']) && !(currentConfig['logcollector-localfile']['localfile-logs'] || []).length">
</wz-no-config>
<!-- End no configuration section -->