Do not display buttons if post-info post was not able to be loaded
@@ -34,7 +34,7 @@ function genComponentConf() {
<won-post-context-dropdown></won-post-context-dropdown>
</div>
<won-post-content post-uri="self.postUri"></won-post-content>
- <div class="post-info__footer" ng-if="!self.postLoading">
+ <div class="post-info__footer" ng-if="!self.postLoading && !self.postFailedToLoad">
<button class="won-button--filled red post-info__footer__button"
ng-if="self.showCreateWhatsAround()"
ng-click="self.createWhatsAround()"
@@ -64,6 +64,9 @@ function genComponentConf() {
postLoading:
!post ||
getIn(state, ["process", "needs", post.get("uri"), "loading"]),
+ postFailedToLoad:
+ post ||
+ getIn(state, ["process", "needs", post.get("uri"), "failedToLoad"]),
createdTimestamp: post && post.get("creationDate"),
};
};
