mirror of
https://github.com/JGeek00/adguard-home-manager.git
synced 2025-05-14 05:52:51 +00:00
Added server not configured case
This commit is contained in:
parent
8f8ef05a3f
commit
d3f774174f
4 changed files with 24 additions and 0 deletions
|
@ -96,6 +96,15 @@ class DhcpStatic extends StatelessWidget {
|
|||
color: Colors.red
|
||||
);
|
||||
}
|
||||
else if (result['result'] == 'error' && result['message'] == 'server_not_configured' ) {
|
||||
appConfigProvider.addLog(result['log']);
|
||||
showSnacbkar(
|
||||
context: context,
|
||||
appConfigProvider: appConfigProvider,
|
||||
label: AppLocalizations.of(context)!.serverNotConfigured,
|
||||
color: Colors.red
|
||||
);
|
||||
}
|
||||
else {
|
||||
appConfigProvider.addLog(result['log']);
|
||||
showSnacbkar(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue