mirror of
https://github.com/JGeek00/adguard-home-manager.git
synced 2025-05-04 20:30:35 +00:00
Replaced old http service with new one
This commit is contained in:
parent
39cdcf648d
commit
48f33eee9b
14 changed files with 466 additions and 431 deletions
|
@ -149,13 +149,13 @@ class StatusProvider with ChangeNotifier {
|
|||
_protectionsManagementProcess.add('filtering');
|
||||
notifyListeners();
|
||||
|
||||
final result = await _serversProvider!.apiClient!.updateFiltering(
|
||||
final result = await _serversProvider!.apiClient2!.updateFiltering(
|
||||
enable: newStatus,
|
||||
);
|
||||
|
||||
_protectionsManagementProcess = _protectionsManagementProcess.where((e) => e != 'filtering').toList();
|
||||
|
||||
if (result['result'] == 'success') {
|
||||
if (result.successful == true) {
|
||||
_serverStatus!.filteringEnabled = newStatus;
|
||||
notifyListeners();
|
||||
return true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue