[i18n] Optimize translation labels for Roles page (#26945) (#27029)

* [i18n] Optimize translation labels

* Usage of ng-if instead of ng-show
This commit is contained in:
Maryia Lapata 2018-12-12 17:09:34 +03:00 committed by GitHub
parent a228bf6947
commit 9d0d7894e8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -75,23 +75,19 @@
</div>
<!-- NoResults -->
<div class="kuiPanel kuiPanel--centered" ng-show="!(roles | filter:query).length">
<div class="kuiPanel kuiPanel--centered" ng-if="!(roles | filter:query).length">
<div
class="kuiNoItems"
>
<span
i18n-id="xpack.security.management.roles.noFoundMatchingRolesDescription1"
i18n-default-message="No "
i18n-context="Part of composite label xpack.security.management.roles.noFoundMatchingRolesDescription1 + {matchingText} + xpack.security.management.roles.noFoundMatchingRolesDescription2"
ng-if="query"
i18n-id="xpack.security.management.roles.noMatchingResultsLabel"
i18n-default-message="No matching roles found"
></span>
<span
ng-show="query"
i18n-id="xpack.security.management.roles.matchingText"
i18n-default-message="matching"
></span>
<span
i18n-id="xpack.security.management.roles.noFoundMatchingRolesDescription2"
i18n-default-message=" roles found"
ng-if="!query"
i18n-id="xpack.security.management.roles.noResultsLabel"
i18n-default-message="No roles found"
></span>
</div>
</div>