Remove empty views menu in read-only mode

pull/54/merge
Candid Dauth 2016-10-30 17:35:03 +03:00
rodzic b0b79783bf
commit 32d513a060
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -14,7 +14,7 @@
<li><a href="javascript:" ng-click="editObjectTypes()">Manage types</a></li>
</ul>
</li>
<li role="presentation" uib-dropdown keyboard-nav="true" ng-if="padId">
<li role="presentation" uib-dropdown keyboard-nav="true" ng-if="padId && (!readonly || (views | fmPropertyCount) != 0)">
<a href="javascript:" id="toolbox-views-dropdown" uib-dropdown-toggle role="button">Saved views <span class="caret"></span></a>
<ul uib-dropdown-menu aria-labelledby="toolbox-views-dropdown">
<li ng-repeat="(id, view) in views"><a href="javascript:" ng-click="displayView(view)">{{view.name}}</a></li>