Set a default error message for resource views

Ensures that we don't display an empty error box
This commit is contained in:
Joseph Schorr 2017-11-28 15:38:48 +02:00
parent 773ea9fc65
commit c7e439f593

View file

@ -1,7 +1,7 @@
<div class="resource-view-element">
<div class="cor-loader" ng-show="getState(resources) == 'loading'"></div>
<div class="co-alert co-alert-warning" ng-show="getState(resources) == 'error'">
{{ errorMessage }}
{{ errorMessage || 'Could not load resource' }}
</div>
<div class="resource-content" ng-class="getState(resources) == 'ready' ? 'visible' : 'hidden'">
<span ng-transclude></span>