mirror of
https://git.selfprivacy.org/kherel/selfprivacy.org.app.git
synced 2025-01-23 09:16:54 +00:00
fix(assets): Fix broken strings for network domain elements
This commit is contained in:
parent
d837989940
commit
20e4d9565b
|
@ -353,7 +353,7 @@ class ServerInstallationRepository {
|
||||||
BrandAlert(
|
BrandAlert(
|
||||||
title: e.response!.data['errors'][0]['code'] == 1038
|
title: e.response!.data['errors'][0]['code'] == 1038
|
||||||
? 'modals.you_cant_use_this_api'.tr()
|
? 'modals.you_cant_use_this_api'.tr()
|
||||||
: 'domain.states.error'.tr(),
|
: 'domain.error'.tr(),
|
||||||
contentText: 'modals.delete_server_volume'.tr(),
|
contentText: 'modals.delete_server_volume'.tr(),
|
||||||
actions: [
|
actions: [
|
||||||
ActionButton(
|
ActionButton(
|
||||||
|
|
|
@ -28,7 +28,7 @@ class _DnsDetailsPageState extends State<DnsDetailsPage> {
|
||||||
bool isError = false;
|
bool isError = false;
|
||||||
switch (dnsState) {
|
switch (dnsState) {
|
||||||
case DnsRecordsStatus.uninitialized:
|
case DnsRecordsStatus.uninitialized:
|
||||||
description = 'domain.states.uninitialized'.tr();
|
description = 'domain.uninitialized'.tr();
|
||||||
icon = const Icon(
|
icon = const Icon(
|
||||||
Icons.refresh,
|
Icons.refresh,
|
||||||
size: 24.0,
|
size: 24.0,
|
||||||
|
@ -36,7 +36,7 @@ class _DnsDetailsPageState extends State<DnsDetailsPage> {
|
||||||
isError = false;
|
isError = false;
|
||||||
break;
|
break;
|
||||||
case DnsRecordsStatus.refreshing:
|
case DnsRecordsStatus.refreshing:
|
||||||
description = 'domain.states.refreshing'.tr();
|
description = 'domain.refreshing'.tr();
|
||||||
icon = const Icon(
|
icon = const Icon(
|
||||||
Icons.refresh,
|
Icons.refresh,
|
||||||
size: 24.0,
|
size: 24.0,
|
||||||
|
@ -44,7 +44,7 @@ class _DnsDetailsPageState extends State<DnsDetailsPage> {
|
||||||
isError = false;
|
isError = false;
|
||||||
break;
|
break;
|
||||||
case DnsRecordsStatus.good:
|
case DnsRecordsStatus.good:
|
||||||
description = 'domain.states.ok'.tr();
|
description = 'domain.ok'.tr();
|
||||||
icon = const Icon(
|
icon = const Icon(
|
||||||
Icons.check_circle_outline,
|
Icons.check_circle_outline,
|
||||||
size: 24.0,
|
size: 24.0,
|
||||||
|
@ -52,8 +52,8 @@ class _DnsDetailsPageState extends State<DnsDetailsPage> {
|
||||||
isError = false;
|
isError = false;
|
||||||
break;
|
break;
|
||||||
case DnsRecordsStatus.error:
|
case DnsRecordsStatus.error:
|
||||||
description = 'domain.states.error'.tr();
|
description = 'domain.error'.tr();
|
||||||
subtitle = 'domain.states.error_subtitle'.tr();
|
subtitle = 'domain.error_subtitle'.tr();
|
||||||
icon = const Icon(
|
icon = const Icon(
|
||||||
Icons.error_outline,
|
Icons.error_outline,
|
||||||
size: 24.0,
|
size: 24.0,
|
||||||
|
|
Loading…
Reference in a new issue