adds postFailedToLoad to the post-header state
@@ -28,11 +28,10 @@ function genComponentConf() {
ng-show="!self.hideImage">
</won-square-image>
<div class="ph__right" ng-if="!self.need.get('isBeingCreated') && !self.postLoading">
- <div class="ph__right__topline">
+ <div class="ph__right__topline" ng-if="!self.postFailedToLoad">
<div class="ph__right__topline__title" ng-if="self.hasTitle()">
{{ self.generateTitle() }}
</div>
-
<div class="ph__right__topline__notitle" ng-if="!self.hasTitle() && self.isDirectResponse">
RE: no title
</div>
@@ -40,15 +39,24 @@ function genComponentConf() {
no title
</div>
</div>
- <div class="ph__right__subtitle">
+ <div class="ph__right__subtitle" ng-if="!self.postFailedToLoad">
<span class="ph__right__subtitle__type">
- <!-- TODO: We Do not store a single type anymore but a list of types... adapt accordingly -->
{{ self.generateNeedTypesLabel(self.need) }}
</span>
<div class="ph__right__subtitle__date">
{{ self.friendlyTimestamp }}
</div>
</div>
+ <div class="ph__right__topline" ng-if="self.postFailedToLoad">
+ <div class="ph__right__topline__notitle">
+ Need Loading failed
+ </div>
+ </div>
+ <div class="ph__right__subtitle" ng-if="self.postFailedToLoad">
+ <span class="ph__right__subtitle__type">
+ Need might have been deleted.
+ </span>
+ </div>
</div>
<div class="ph__right" ng-if="self.need.get('isBeingCreated')">
@@ -98,6 +106,9 @@ function genComponentConf() {
postToLoad:
!need ||
getIn(state, ["process", "needs", need.get("uri"), "toLoad"]),
+ postFailedToLoad:
+ need &&
+ getIn(state, ["process", "needs", need.get("uri"), "failedToLoad"]),
isDirectResponse: isDirectResponse,
friendlyTimestamp:
need &&
