Button captions can be bound once
This commit is contained in:
parent
e5f1d9821a
commit
2eed56e744
1 changed files with 2 additions and 2 deletions
|
@ -288,12 +288,12 @@ $ openssl req -nodes -newkey rsa:2048 -keyout relay.pem -x509 -days 365 -out rel
|
||||||
|
|
||||||
<div bindonce ng-repeat="metadata in bufferline.metadata">
|
<div bindonce ng-repeat="metadata in bufferline.metadata">
|
||||||
<div ng-show="metadata.visible">
|
<div ng-show="metadata.visible">
|
||||||
<button class="btn btn-primary pull-right" ng-click="metadata.visible = false">Hide {{ metadata.name }}</button>
|
<button bindonce class="btn btn-primary pull-right" ng-click="metadata.visible = false">Hide {{ metadata.name }}</button>
|
||||||
<div ng-bind-html="metadata.content"></div>
|
<div ng-bind-html="metadata.content"></div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<div ng-hide="metadata.visible">
|
<div ng-hide="metadata.visible">
|
||||||
<button class="btn pull-right" ng-class="{'btn-warning': metadata.nsfw, 'btn-primary': !metadata.nsfw}" ng-click="metadata.visible = true">Show {{ metadata.name }}</button>
|
<button bindonce class="btn pull-right" bo-class="{'btn-warning': metadata.nsfw, 'btn-primary': !metadata.nsfw}" ng-click="metadata.visible = true">Show {{ metadata.name }}</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</td>
|
</td>
|
||||||
|
|
Loading…
Reference in a new issue