зеркало из https://github.com/nextcloud/news.git
remove opacity for feedcounter, fix #57
This commit is contained in:
Родитель
516063c1e1
Коммит
8553c92dd9
|
@ -102,19 +102,6 @@ angular.module('News').factory '_FeedController',
|
|||
@_$scope.addNewFolder = true
|
||||
|
||||
|
||||
@_$scope.getOpacity = (number) =>
|
||||
number = parseInt(number, 10)
|
||||
|
||||
# the higher the number, the lower the opacity
|
||||
opacity = (number / 180)
|
||||
|
||||
if opacity < 0.3
|
||||
opacity = 0.3
|
||||
if opacity > 1
|
||||
opacity = 1
|
||||
return opacity
|
||||
|
||||
|
||||
@_$scope.$on 'moveFeedToFolder', (scope, data) =>
|
||||
@_feedBl.move(data.feedId, data.folderId)
|
||||
|
||||
|
|
|
@ -342,19 +342,6 @@ License along with this library. If not, see <http://www.gnu.org/licenses/>.
|
|||
return _this._$scope.addNewFolder = true;
|
||||
}
|
||||
};
|
||||
this._$scope.getOpacity = function(number) {
|
||||
var opacity;
|
||||
|
||||
number = parseInt(number, 10);
|
||||
opacity = number / 180;
|
||||
if (opacity < 0.3) {
|
||||
opacity = 0.3;
|
||||
}
|
||||
if (opacity > 1) {
|
||||
opacity = 1;
|
||||
}
|
||||
return opacity;
|
||||
};
|
||||
this._$scope.$on('moveFeedToFolder', function(scope, data) {
|
||||
return _this._feedBl.move(data.feedId, data.folderId);
|
||||
});
|
||||
|
|
|
@ -16,8 +16,7 @@
|
|||
<?php p($l->t('All articles'))?>
|
||||
</a>
|
||||
<span class="utils">
|
||||
<span class="unread-counter"
|
||||
ng-style="{opacity: getOpacity(subscriptionsBl.getUnreadCount()) }">
|
||||
<span class="unread-counter">
|
||||
{{ subscriptionsBl.getUnreadCount() }}
|
||||
</span>
|
||||
<button class="svg action mark-read-icon"
|
||||
|
|
|
@ -29,8 +29,7 @@
|
|||
<span class="utils">
|
||||
|
||||
<span class="unread-counter"
|
||||
ng-show="feed.id"
|
||||
ng-style="{opacity: getOpacity(feedBl.getUnreadCount(feed.id)) }">
|
||||
ng-show="feed.id">
|
||||
{{ feedBl.getUnreadCount(feed.id) }}
|
||||
</span>
|
||||
|
||||
|
|
|
@ -30,8 +30,7 @@
|
|||
class="svg action delete-icon"
|
||||
title="<?php p($l->t('Delete folder')); ?>"></button>
|
||||
|
||||
<span class="unread-counter"
|
||||
ng-style="{ opacity: getOpacity(folderBl.getUnreadCount(folder.id)) }">
|
||||
<span class="unread-counter">
|
||||
{{ folderBl.getUnreadCount(folder.id) }}
|
||||
</span>
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче