默认隐藏全局书签
This commit is contained in:
parent
819109c900
commit
dd13f85163
|
|
@ -9,6 +9,9 @@ app.controller('tagsCtr', ['$scope', '$filter', '$state', '$window', '$statePara
|
||||||
(async () => {
|
(async () => {
|
||||||
await getTags();
|
await getTags();
|
||||||
$scope.user = await get('user');
|
$scope.user = await get('user');
|
||||||
|
if ($scope.user.username != 'lcq') {
|
||||||
|
$(".globalTag").show(); // 自己知道这个功能,不显示
|
||||||
|
}
|
||||||
})()
|
})()
|
||||||
|
|
||||||
let dialog = null;
|
let dialog = null;
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@
|
||||||
<div class="ui label" style="margin: 3px 15px 8px 0px; cursor: default;" ng-if="tag.bookmarkCount && tag.show" ng-repeat="tag in tags" ng-class="{green:tag.bookmarkClicked}" ng-click="getBookmarks(tag.id, (tag.id == -1 ? 0 : 1), null)">
|
<div class="ui label" style="margin: 3px 15px 8px 0px; cursor: default;" ng-if="tag.bookmarkCount && tag.show" ng-repeat="tag in tags" ng-class="{green:tag.bookmarkClicked}" ng-click="getBookmarks(tag.id, (tag.id == -1 ? 0 : 1), null)">
|
||||||
{{ tag.name }} ({{ tag.bookmarkCount || 0 }})
|
{{ tag.name }} ({{ tag.bookmarkCount || 0 }})
|
||||||
</div>
|
</div>
|
||||||
<div class="ui label" ng-if="user.username != 'lcq'" style="margin: 3px 15px 8px 0px; cursor: default;display:none" ng-click="globalTag()">
|
<div class="ui label globalTag" style="margin: 3px 15px 8px 0px; cursor: default;display:none" ng-click="globalTag()">
|
||||||
全局书签
|
全局书签
|
||||||
</div>
|
</div>
|
||||||
<div class="ui label js-tag-label" style="margin: 3px 15px 8px 0px; cursor: default;">
|
<div class="ui label js-tag-label" style="margin: 3px 15px 8px 0px; cursor: default;">
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue