mirror of
https://github.com/chylex/Nextcloud-News.git
synced 2025-04-26 05:15:46 +02:00
fixed active menu item and reload for unread
Signed-off-by: anoy <anoymouserver+github@mailbox.org>
This commit is contained in:
parent
5f6db2400f
commit
b5340676dc
@ -140,6 +140,11 @@ app.controller('NavigationController', function ($route, FEED_TYPE, FeedResource
|
||||
$route.current.$$route.type === FEED_TYPE.SUBSCRIPTIONS;
|
||||
};
|
||||
|
||||
this.isUnreadActive = function () {
|
||||
return $route.current &&
|
||||
$route.current.$$route.type === FEED_TYPE.UNREAD;
|
||||
};
|
||||
|
||||
this.isStarredActive = function () {
|
||||
return $route.current &&
|
||||
$route.current.$$route.type === FEED_TYPE.STARRED;
|
||||
|
@ -1,10 +1,10 @@
|
||||
<li ng-class="{
|
||||
active: Navigation.isSubscriptionsActive(),
|
||||
active: Navigation.isUnreadActive(),
|
||||
unread: Navigation.isUnread()
|
||||
}"
|
||||
class="subscriptions-feed with-counter with-menu">
|
||||
|
||||
<a class="icon-rss" ng-href="#/items/unread" >
|
||||
<a class="icon-rss" ng-href="#/items/unread/" >
|
||||
<?php p($l->t('Unread articles'))?>
|
||||
</a>
|
||||
|
||||
@ -40,13 +40,14 @@
|
||||
active: Navigation.isSubscriptionsActive(),
|
||||
unread: Navigation.isUnread()
|
||||
}"
|
||||
class="all-subscriptions-feed with-counter with-menu">
|
||||
ng-if="Navigation.isShowAll()"
|
||||
class="all-subscriptions-feed with-menu">
|
||||
|
||||
<a class="icon-rss" ng-href="#/items/" ng-if="Navigation.isShowAll()">
|
||||
<a class="icon-rss" ng-href="#/items/">
|
||||
<?php p($l->t('All articles'))?>
|
||||
</a>
|
||||
|
||||
<div class="app-navigation-entry-utils" ng-if="Navigation.isShowAll()">
|
||||
<div class="app-navigation-entry-utils">
|
||||
<ul>
|
||||
<li class="app-navigation-entry-utils-menu-button">
|
||||
<button
|
||||
@ -56,7 +57,7 @@
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<div class="app-navigation-entry-menu" ng-if="navigation.isShowAll()">
|
||||
<div class="app-navigation-entry-menu">
|
||||
<ul>
|
||||
<li class="mark-read">
|
||||
<button ng-click="Navigation.markRead()">
|
||||
|
Loading…
Reference in New Issue
Block a user