Skip to content

Commit

Permalink
Hide ability to assign image to asset/goods if user has no rights for…
Browse files Browse the repository at this point in the history
… it.

Fix binding img src attribute.
  • Loading branch information
alex01011 committed Oct 3, 2023
1 parent 8d45898 commit 8bdff62
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
5 changes: 3 additions & 2 deletions app/partials/assets.html
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,8 @@
<i class="fa fa-angle-right fa-fw"></i>&nbsp;&nbsp;<span translate="translate.assign-expiry"/>
</a>
</li>
<li role="presentation" ng-if="currentAccount">

<li role="presentation" ng-if="currentAccount.id_rs == assetIssuerRS">
<a href ng-click="executeTransaction('assignAssetImage', { asset:asset })">
<i class="fa fa-angle-right fa-fw"></i>&nbsp;&nbsp;<span translate="translate.assign_image"/>
</a>
Expand Down Expand Up @@ -114,7 +115,7 @@ <h4 class="media-heading">{{assetName}}</h4>
<table class="table table-condensed">
<tr><td>Id</td><td colspan="3"><a ng-href="#/assets/{{paramEngine}}/{{paramAsset}}/trade">{{paramAsset}}</a></td></tr>
<tr>
<td>Issuer</td colspan="3">
<td colspan="3">Issuer</td>
<td>
<a ng-href="#/accounts/{{assetIssuerRS}}/activity/latest" ng-hide="TRADE_UI_ONLY">{{assetIssuerName||assetIssuerRS}}</a>
<span ng-show="TRADE_UI_ONLY">{{assetIssuerName||assetIssuerRS}}</span>
Expand Down
4 changes: 2 additions & 2 deletions app/partials/goods.html
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ <h4>
<a href="#/goods/{{paramEngine}}/listing" class="btn btn-warning close-button">{{'translate.close' | translate}}</a>
</div>

<a class="btn btn-primary goods-details3" href ng-if="currentAccount" ng-click="executeTransaction('assignAssetImage', { goods: provider.goods })">
<a class="btn btn-primary goods-details3" href ng-if="provider.sellerRS == currentAccount.id_rs" ng-click="executeTransaction('assignAssetImage', { goods: provider.goods })">
<span translate="translate.assign_image"/>
</a>

Expand Down Expand Up @@ -266,7 +266,7 @@ <h4 class="balanceError">{{balanceError}}</h4>
</p>
<p>
<button ng-if="currentAccount" ng-click="purchaseItem(item)" class="btn btn-success" type="button">
<img ng-if="purchaseButtonImage[item.goods]" src="{{purchaseButtonImage[item.goods]}}" style="width: 28px; height: 28px; margin-right: 7px;"/>
<img ng-if="purchaseButtonImage[item.goods]" ng-src="{{purchaseButtonImage[item.goods]}}" style="width: 28px; height: 28px; margin-right: 7px;"/>
Purchase
</button>
<!--
Expand Down

0 comments on commit 8bdff62

Please sign in to comment.