Highligh currently selected category button instead of showing the title

This commit is contained in:
Johannes Zellner
2020-06-13 23:01:48 +02:00
parent 15a7beae57
commit 6876e82d64
2 changed files with 4 additions and 16 deletions

View File

@@ -70,17 +70,6 @@ angular.module('Application').controller('AppStoreController', ['$scope', '$loca
return 'Category';
};
$scope.categoryLabel = function (category) {
if (category === 'new') return 'New Apps';
if (category === 'recent') return 'Recently Updated';
if (category === 'featured') return 'Popular Apps';
var tmp = $scope.categories.find(function (c) { return c.id === category; });
if (tmp) return tmp.label;
return '';
};
$scope.appInstall = {
busy: false,
state: 'appInfo',