默认隐藏全局书签

This commit is contained in:
HelloWorld 2020-04-22 08:36:26 +08:00
parent 819109c900
commit dd13f85163
2 changed files with 4 additions and 1 deletions

View File

@ -9,6 +9,9 @@ app.controller('tagsCtr', ['$scope', '$filter', '$state', '$window', '$statePara
(async () => {
await getTags();
$scope.user = await get('user');
if ($scope.user.username != 'lcq') {
$(".globalTag").show(); // 自己知道这个功能,不显示
}
})()
let dialog = null;

View File

@ -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)">
{{ tag.name }} ({{ tag.bookmarkCount || 0 }})
</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 class="ui label js-tag-label" style="margin: 3px 15px 8px 0px; cursor: default;">