CloudFlare DNS: sortable columns, search bar (filter all records)

This commit is contained in:
master3395
2026-02-16 15:08:40 +01:00
parent 80f0f29512
commit c403bfb0c8
3 changed files with 59 additions and 7 deletions

View File

@@ -1162,6 +1162,17 @@ app.controller('addModifyDNSRecordsCloudFlare', function ($scope, $http, $window
}
return list;
};
$scope.dnsSearchFilter = '';
$scope.sortColumn = 'name';
$scope.sortReverse = false;
$scope.setSort = function (col) {
if ($scope.sortColumn === col) {
$scope.sortReverse = !$scope.sortReverse;
} else {
$scope.sortColumn = col;
$scope.sortReverse = false;
}
};
$scope.editingRecordId = null;
$scope.editingField = null;
$scope.isEditing = function (record, field) {