implement "hide post details" button for desktop view when a post detail is shown
@@ -76,10 +76,17 @@ function genComponentConf() {
</won-extended-connection-indicators>
<div class="co__item__need__detail__actions">
<button
+ ng-if="need.get('uri') !== self.needUriInRoute"
class="co__item__need__detail__actions__button won-button--outlined thin red"
ng-click="self.selectNeed(need.get('uri'))">
Show Post Details
</button>
+ <button
+ ng-if="need.get('uri') === self.needUriInRoute"
+ class="co__item__need__detail__actions__button won-button--outlined thin red"
+ ng-click="self.selectNeed(undefined)">
+ Hide Post Details
+ </button>
</div>
</div>
</div>
@@ -139,10 +146,17 @@ function genComponentConf() {
</won-extended-connection-indicators>
<div class="co__item__need__detail__actions">
<button
+ ng-if="need.get('uri') === self.needUriInRoute"
class="co__item__need__detail__actions__button won-button--outlined thin red"
ng-click="self.selectNeed(need.get('uri'))">
Show Post Details
</button>
+ <button
+ ng-if="need.get('uri') === self.needUriInRoute"
+ class="co__item__need__detail__actions__button won-button--outlined thin red"
+ ng-click="self.selectNeed(undefined)">
+ Hide Post Details
+ </button>
</div>
</div>
</div>
