change how packages are fetched on ubuntu;

This commit is contained in:
Usman Nasir
2020-05-03 23:18:09 +05:00
parent 765c5e0dd2
commit 332b9ff5fc
4 changed files with 114 additions and 25 deletions

View File

@@ -789,7 +789,7 @@ app.controller('listOSPackages', function ($scope, $http, $timeout) {
$scope.currentPage = 1;
$scope.recordsToShow = 10;
$scope.fetchPackages = function () {
$scope.fetchPackages = function (type = 'installed') {
$scope.cyberpanelLoading = false;
var config = {
@@ -800,7 +800,8 @@ app.controller('listOSPackages', function ($scope, $http, $timeout) {
var data = {
page: $scope.currentPage,
recordsToShow: $scope.recordsToShow
recordsToShow: $scope.recordsToShow,
type: type
};
dataurl = "/serverstatus/fetchPackages";
@@ -833,6 +834,7 @@ app.controller('listOSPackages', function ($scope, $http, $timeout) {
};
$scope.fetchPackages('upgrade');
$scope.killProcess = function (pid) {