mirror of
https://github.com/JGeek00/adguard-home-manager.git
synced 2025-05-15 22:42:50 +00:00
Changed api requests
This commit is contained in:
parent
f14828ae19
commit
e161cfb594
32 changed files with 1376 additions and 740 deletions
|
@ -11,7 +11,7 @@ import 'package:adguard_home_manager/functions/snackbar.dart';
|
|||
import 'package:adguard_home_manager/providers/app_config_provider.dart';
|
||||
|
||||
class BootstrapDnsScreen extends StatefulWidget {
|
||||
const BootstrapDnsScreen({Key? key}) : super(key: key);
|
||||
const BootstrapDnsScreen({super.key});
|
||||
|
||||
@override
|
||||
State<BootstrapDnsScreen> createState() => _BootstrapDnsScreenState();
|
||||
|
@ -79,14 +79,14 @@ class _BootstrapDnsScreenState extends State<BootstrapDnsScreen> {
|
|||
|
||||
processModal.close();
|
||||
|
||||
if (result['success'] == true) {
|
||||
if (result.successful == true) {
|
||||
showSnacbkar(
|
||||
appConfigProvider: appConfigProvider,
|
||||
label: AppLocalizations.of(context)!.dnsConfigSaved,
|
||||
color: Colors.green
|
||||
);
|
||||
}
|
||||
else if (result['success'] == false && result['error'] == 400) {
|
||||
else if (result.successful == false && result.statusCode == 400) {
|
||||
showSnacbkar(
|
||||
appConfigProvider: appConfigProvider,
|
||||
label: AppLocalizations.of(context)!.someValueNotValid,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue