mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2024-11-16 17:27:37 +00:00
service status button updates (#1388)
* service status button updates * small fix * update wording
This commit is contained in:
parent
953c278f8c
commit
fb9534a0e9
29 changed files with 86 additions and 6 deletions
|
@ -106,10 +106,10 @@ class _DashboardPageView extends BasePage {
|
|||
Widget leading(BuildContext context) {
|
||||
return Observer(
|
||||
builder: (context) {
|
||||
if (dashboardViewModel.isEnabledBulletinAction) {
|
||||
return ServicesUpdatesWidget(dashboardViewModel.getServicesStatus());
|
||||
}
|
||||
return const SizedBox();
|
||||
return ServicesUpdatesWidget(
|
||||
dashboardViewModel.getServicesStatus(),
|
||||
enabled: dashboardViewModel.isEnabledBulletinAction,
|
||||
);
|
||||
},
|
||||
);
|
||||
}
|
||||
|
|
|
@ -107,7 +107,10 @@ class DesktopSidebarWrapper extends BasePage {
|
|||
: unselectedIconPath,
|
||||
),
|
||||
SideMenuItem(
|
||||
widget: ServicesUpdatesWidget(dashboardViewModel.getServicesStatus()),
|
||||
widget: ServicesUpdatesWidget(
|
||||
dashboardViewModel.getServicesStatus(),
|
||||
enabled: dashboardViewModel.isEnabledBulletinAction,
|
||||
),
|
||||
isSelected: desktopSidebarViewModel.currentPage == SidebarItem.status,
|
||||
onTap: () {},
|
||||
),
|
||||
|
|
|
@ -1,10 +1,13 @@
|
|||
import 'package:cake_wallet/di.dart';
|
||||
import 'package:cake_wallet/entities/preferences_key.dart';
|
||||
import 'package:cake_wallet/entities/service_status.dart';
|
||||
import 'package:cake_wallet/generated/i18n.dart';
|
||||
import 'package:cake_wallet/src/widgets/alert_with_one_action.dart';
|
||||
import 'package:cake_wallet/src/widgets/primary_button.dart';
|
||||
import 'package:cake_wallet/src/widgets/service_status_tile.dart';
|
||||
import 'package:cake_wallet/themes/extensions/dashboard_page_theme.dart';
|
||||
import 'package:cake_wallet/themes/extensions/wallet_list_theme.dart';
|
||||
import 'package:cake_wallet/utils/show_pop_up.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter_svg/flutter_svg.dart';
|
||||
import 'package:shared_preferences/shared_preferences.dart';
|
||||
|
@ -12,8 +15,9 @@ import 'package:url_launcher/url_launcher.dart';
|
|||
|
||||
class ServicesUpdatesWidget extends StatefulWidget {
|
||||
final Future<ServicesResponse> servicesResponse;
|
||||
final bool enabled;
|
||||
|
||||
const ServicesUpdatesWidget(this.servicesResponse, {super.key});
|
||||
const ServicesUpdatesWidget(this.servicesResponse, {super.key, required this.enabled});
|
||||
|
||||
@override
|
||||
State<ServicesUpdatesWidget> createState() => _ServicesUpdatesWidgetState();
|
||||
|
@ -24,6 +28,27 @@ class _ServicesUpdatesWidgetState extends State<ServicesUpdatesWidget> {
|
|||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
if (!widget.enabled) {
|
||||
return InkWell(
|
||||
onTap: () async {
|
||||
await showPopUp<void>(
|
||||
context: context,
|
||||
builder: (BuildContext context) {
|
||||
return AlertWithOneAction(
|
||||
alertTitle: S.current.service_health_disabled,
|
||||
alertContent: S.current.service_health_disabled_message,
|
||||
buttonText: S.current.ok,
|
||||
buttonAction: () => Navigator.of(context).pop(),
|
||||
);
|
||||
});
|
||||
},
|
||||
child: SvgPicture.asset(
|
||||
"assets/images/notification_icon.svg",
|
||||
color: Theme.of(context).extension<DashboardPageTheme>()!.pageTitleTextColor,
|
||||
width: 30,
|
||||
),
|
||||
);
|
||||
}
|
||||
return Padding(
|
||||
padding: const EdgeInsets.all(8.0),
|
||||
child: FutureBuilder<ServicesResponse>(
|
||||
|
|
|
@ -583,6 +583,8 @@
|
|||
"send_your_wallet": "محفظتك",
|
||||
"sending": "يتم الإرسال",
|
||||
"sent": "تم الأرسال",
|
||||
"service_health_disabled": "تم تعطيل نشرة صحة الخدمة",
|
||||
"service_health_disabled_message": "هذه هي صفحة نشرة صحة الخدمة ، يمكنك تمكين هذه الصفحة ضمن الإعدادات -> الخصوصية",
|
||||
"settings": "إعدادات",
|
||||
"settings_all": "الكل",
|
||||
"settings_allow_biometrical_authentication": "السماح بالمصادقة البيومترية",
|
||||
|
|
|
@ -583,6 +583,8 @@
|
|||
"send_your_wallet": "Вашият портфейл",
|
||||
"sending": "Изпращане",
|
||||
"sent": "Изпратени",
|
||||
"service_health_disabled": "Service Health Bulletin е деактивиран",
|
||||
"service_health_disabled_message": "Това е страницата на Bulletin на Service Health, можете да активирате тази страница в Настройки -> Поверителност",
|
||||
"settings": "Настройки",
|
||||
"settings_all": "Всичко",
|
||||
"settings_allow_biometrical_authentication": "Позволяване на биометрично удостоверяване.",
|
||||
|
|
|
@ -583,6 +583,8 @@
|
|||
"send_your_wallet": "Vaše peněženka",
|
||||
"sending": "Odesílání",
|
||||
"sent": "Odesláno",
|
||||
"service_health_disabled": "Bulletin zdraví služeb je deaktivován",
|
||||
"service_health_disabled_message": "Toto je stránka Bulletin Service Health Bulletin, můžete tuto stránku povolit v rámci nastavení -> Ochrana osobních údajů",
|
||||
"settings": "Nastavení",
|
||||
"settings_all": "VŠE",
|
||||
"settings_allow_biometrical_authentication": "Povolit biometrické ověření",
|
||||
|
|
|
@ -584,6 +584,8 @@
|
|||
"send_your_wallet": "Ihre Wallet",
|
||||
"sending": "Senden",
|
||||
"sent": "Versendet",
|
||||
"service_health_disabled": "Service Health Bulletin ist behindert",
|
||||
"service_health_disabled_message": "Dies ist die Seite \"Service Health Bulletin\", können Sie diese Seite unter Einstellungen -> Privatsphäre aktivieren",
|
||||
"settings": "Einstellungen",
|
||||
"settings_all": "ALLE",
|
||||
"settings_allow_biometrical_authentication": "Biometrische Authentifizierung zulassen",
|
||||
|
|
|
@ -583,6 +583,8 @@
|
|||
"send_your_wallet": "Your wallet",
|
||||
"sending": "Sending",
|
||||
"sent": "Sent",
|
||||
"service_health_disabled": "Service Health Bulletin is disabled",
|
||||
"service_health_disabled_message": "This is the service health bulletin page, you can enable this page under Settings -> Privacy",
|
||||
"settings": "Settings",
|
||||
"settings_all": "ALL",
|
||||
"settings_allow_biometrical_authentication": "Allow biometrical authentication",
|
||||
|
|
|
@ -584,6 +584,8 @@
|
|||
"send_your_wallet": "Tu billetera",
|
||||
"sending": "Enviando",
|
||||
"sent": "Expedido",
|
||||
"service_health_disabled": "El boletín de salud del servicio está deshabilitado",
|
||||
"service_health_disabled_message": "Esta es la página del Boletín de Salud del Servicio, puede habilitar esta página en Configuración -> Privacidad",
|
||||
"settings": "Configuraciones",
|
||||
"settings_all": "TODOS",
|
||||
"settings_allow_biometrical_authentication": "Permitir autenticación biométrica",
|
||||
|
|
|
@ -583,6 +583,8 @@
|
|||
"send_your_wallet": "Votre portefeuille (wallet)",
|
||||
"sending": "Envoi",
|
||||
"sent": "Envoyés",
|
||||
"service_health_disabled": "Le bulletin de santé du service est handicapé",
|
||||
"service_health_disabled_message": "Ceci est la page du Bulletin de santé du service, vous pouvez activer cette page sous Paramètres -> Confidentialité",
|
||||
"settings": "Paramètres",
|
||||
"settings_all": "TOUT",
|
||||
"settings_allow_biometrical_authentication": "Autoriser l'authentification biométrique",
|
||||
|
|
|
@ -585,6 +585,8 @@
|
|||
"send_your_wallet": "Walat ɗin ku",
|
||||
"sending": "Aika",
|
||||
"sent": "Aika",
|
||||
"service_health_disabled": "Ba a kashe Bayar da Kiwon Lafiya",
|
||||
"service_health_disabled_message": "Wannan shafin yanar gizo mai kula da sabis ne, zaka iya kunna wannan shafin a karkashin saiti -> Sirri",
|
||||
"settings": "Saiti",
|
||||
"settings_all": "DUK",
|
||||
"settings_allow_biometrical_authentication": "Bada izinin tantance sawun yatsa",
|
||||
|
|
|
@ -585,6 +585,8 @@
|
|||
"send_your_wallet": "आपका बटुआ",
|
||||
"sending": "भेजना",
|
||||
"sent": "भेज दिया",
|
||||
"service_health_disabled": "सेवा स्वास्थ्य बुलेटिन अक्षम है",
|
||||
"service_health_disabled_message": "यह सेवा स्वास्थ्य बुलेटिन पृष्ठ है, आप इस पृष्ठ को सेटिंग्स के तहत सक्षम कर सकते हैं -> गोपनीयता",
|
||||
"settings": "समायोजन",
|
||||
"settings_all": "सब",
|
||||
"settings_allow_biometrical_authentication": "बायोमेट्रिक प्रमाणीकरण की अनुमति दें",
|
||||
|
|
|
@ -583,6 +583,8 @@
|
|||
"send_your_wallet": "Tvoj novčanik",
|
||||
"sending": "Slanje",
|
||||
"sent": "Poslano",
|
||||
"service_health_disabled": "Zdravstveni bilten usluge je onemogućen",
|
||||
"service_health_disabled_message": "Ovo je stranica zdravstvenog biltena o usluzi, možete omogućiti ovu stranicu pod postavkama -> privatnost",
|
||||
"settings": "Postavke",
|
||||
"settings_all": "SVE",
|
||||
"settings_allow_biometrical_authentication": "Dopusti biometrijsku autentifikaciju",
|
||||
|
|
|
@ -586,6 +586,8 @@
|
|||
"send_your_wallet": "Dompetmu",
|
||||
"sending": "Mengirim",
|
||||
"sent": "Dikirim",
|
||||
"service_health_disabled": "Buletin Kesehatan Layanan dinonaktifkan",
|
||||
"service_health_disabled_message": "Ini adalah halaman Buletin Kesehatan Layanan, Anda dapat mengaktifkan halaman ini di bawah Pengaturan -> Privasi",
|
||||
"settings": "Pengaturan",
|
||||
"settings_all": "SEMUA",
|
||||
"settings_allow_biometrical_authentication": "Izinkan otentikasi biometrik",
|
||||
|
|
|
@ -585,6 +585,8 @@
|
|||
"send_your_wallet": "Il tuo portafoglio",
|
||||
"sending": "Invio",
|
||||
"sent": "Inviato",
|
||||
"service_health_disabled": "Il Bollettino sanitario di servizio è disabilitato",
|
||||
"service_health_disabled_message": "Questa è la pagina del Bollettino sanitario del servizio, è possibile abilitare questa pagina in Impostazioni -> Privacy",
|
||||
"settings": "Impostazioni",
|
||||
"settings_all": "TUTTO",
|
||||
"settings_allow_biometrical_authentication": "Consenti autenticazione biometrica",
|
||||
|
|
|
@ -584,6 +584,8 @@
|
|||
"send_your_wallet": "あなたの財布",
|
||||
"sending": "送信",
|
||||
"sent": "送信済み",
|
||||
"service_health_disabled": "サービスヘルス速報は無効です",
|
||||
"service_health_disabled_message": "これはService Health Bulletinページです。設定の下でこのページを有効にすることができます - >プライバシー",
|
||||
"settings": "設定",
|
||||
"settings_all": "すべて",
|
||||
"settings_allow_biometrical_authentication": "生体認証を許可する",
|
||||
|
|
|
@ -584,6 +584,8 @@
|
|||
"send_your_wallet": "지갑",
|
||||
"sending": "배상",
|
||||
"sent": "보냄",
|
||||
"service_health_disabled": "서비스 건강 게시판이 장애가되었습니다",
|
||||
"service_health_disabled_message": "이것은 서비스 건강 게시판 페이지입니다. 설정 에서이 페이지를 활성화 할 수 있습니다 -> 개인 정보",
|
||||
"settings": "설정",
|
||||
"settings_all": "모든",
|
||||
"settings_allow_biometrical_authentication": "생체 인증 허용",
|
||||
|
|
|
@ -583,6 +583,8 @@
|
|||
"send_your_wallet": "သင့်ပိုက်ဆံအိတ်",
|
||||
"sending": "ပေးပို့ခြင်း။",
|
||||
"sent": "ပို့လိုက်ပါတယ်။",
|
||||
"service_health_disabled": "ဝန်ဆောင်မှုကျန်းမာရေးစာစောင်အားပိတ်ထားသည်",
|
||||
"service_health_disabled_message": "ဤသည်မှာ 0 န်ဆောင်မှုကျန်းမာရေးစာစောင်စာမျက်နှာတွင်ဤစာမျက်နှာကို Settings အောက်တွင်ဖွင့်ထားနိုင်သည်",
|
||||
"settings": "ဆက်တင်များ",
|
||||
"settings_all": "အားလုံး",
|
||||
"settings_allow_biometrical_authentication": "ဇီဝဗေဒဆိုင်ရာ အထောက်အထားစိစစ်ခြင်းကို ခွင့်ပြုပါ။",
|
||||
|
|
|
@ -583,6 +583,8 @@
|
|||
"send_your_wallet": "Uw portemonnee",
|
||||
"sending": "Bezig met verzenden",
|
||||
"sent": "Verzonden",
|
||||
"service_health_disabled": "Service Health Bulletin is uitgeschakeld",
|
||||
"service_health_disabled_message": "Dit is de Service Health Bulletin -pagina, u kunt deze pagina instellingen inschakelen -> Privacy",
|
||||
"settings": "Instellingen",
|
||||
"settings_all": "ALLE",
|
||||
"settings_allow_biometrical_authentication": "Biometrische authenticatie toestaan",
|
||||
|
|
|
@ -583,6 +583,8 @@
|
|||
"send_your_wallet": "Twój portfel",
|
||||
"sending": "Wysyłanie",
|
||||
"sent": "Wysłano",
|
||||
"service_health_disabled": "Biuletyn zdrowia usług jest wyłączony",
|
||||
"service_health_disabled_message": "To jest strona Biuletynu Zdrowie Service, możesz włączyć tę stronę w Ustawieniach -> Prywatność",
|
||||
"settings": "Ustawienia",
|
||||
"settings_all": "Wszystkie",
|
||||
"settings_allow_biometrical_authentication": "Zezwalaj na uwierzytelnianie biometryczne",
|
||||
|
|
|
@ -585,6 +585,8 @@
|
|||
"send_your_wallet": "Sua carteira",
|
||||
"sending": "Enviando",
|
||||
"sent": "Enviada",
|
||||
"service_health_disabled": "O Boletim de Saúde de Serviço está desativado",
|
||||
"service_health_disabled_message": "Esta é a página do Boletim de Saúde de Serviço, você pode ativar esta página em Configurações -> Privacidade",
|
||||
"settings": "Configurações",
|
||||
"settings_all": "Tudo",
|
||||
"settings_allow_biometrical_authentication": "Permitir autenticação biométrica",
|
||||
|
|
|
@ -584,6 +584,8 @@
|
|||
"send_your_wallet": "Ваш кошелёк",
|
||||
"sending": "Отправка",
|
||||
"sent": "Отправленные",
|
||||
"service_health_disabled": "Бюллетень для здоровья обслуживания инвалид",
|
||||
"service_health_disabled_message": "Это страница бюллетени обслуживания услуг, вы можете включить эту страницу в соответствии с настройками -> Конфиденциальность",
|
||||
"settings": "Настройки",
|
||||
"settings_all": "ВСЕ",
|
||||
"settings_allow_biometrical_authentication": "Включить биометрическую аутентификацию",
|
||||
|
|
|
@ -583,6 +583,8 @@
|
|||
"send_your_wallet": "กระเป๋าของคุณ",
|
||||
"sending": "กำลังส่ง",
|
||||
"sent": "ส่ง",
|
||||
"service_health_disabled": "Service Health Bulletin ถูกปิดใช้งาน",
|
||||
"service_health_disabled_message": "นี่คือหน้า Service Health Bulletin คุณสามารถเปิดใช้งานหน้านี้ภายใต้การตั้งค่า -> ความเป็นส่วนตัว",
|
||||
"settings": "การตั้งค่า",
|
||||
"settings_all": "ทั้งหมด",
|
||||
"settings_allow_biometrical_authentication": "อนุญาตให้ใช้การยืนยันตัวตนทางระบบชีวภาพ",
|
||||
|
|
|
@ -583,6 +583,8 @@
|
|||
"send_your_wallet": "Iyong pitaka",
|
||||
"sending": "Pagpapadala",
|
||||
"sent": "Ipinadala",
|
||||
"service_health_disabled": "Hindi pinagana ang Bulletin ng Serbisyo sa Kalusugan",
|
||||
"service_health_disabled_message": "Ito ang pahina ng Bulletin ng Serbisyo ng Bulletin, maaari mong paganahin ang pahinang ito sa ilalim ng Mga Setting -> Pagkapribado",
|
||||
"settings": "Mga setting",
|
||||
"settings_all": "Lahat",
|
||||
"settings_allow_biometrical_authentication": "Payagan ang pagpapatunay ng biometrical",
|
||||
|
|
|
@ -583,6 +583,8 @@
|
|||
"send_your_wallet": "Cüzdanın",
|
||||
"sending": "Gönderiliyor",
|
||||
"sent": "Gönderildi",
|
||||
"service_health_disabled": "Service Health Bülten devre dışı bırakıldı",
|
||||
"service_health_disabled_message": "Bu Hizmet Sağlığı Bülten Sayfası, bu sayfayı Ayarlar -> Gizlilik altında etkinleştirebilirsiniz",
|
||||
"settings": "ayarlar",
|
||||
"settings_all": "HEPSİ",
|
||||
"settings_allow_biometrical_authentication": "Biyometrik doğrulamaya izin ver",
|
||||
|
|
|
@ -584,6 +584,8 @@
|
|||
"send_your_wallet": "Ваш гаманець",
|
||||
"sending": "Відправлення",
|
||||
"sent": "Відправлені",
|
||||
"service_health_disabled": "Вісник охорони здоров'я інвалідів",
|
||||
"service_health_disabled_message": "Це сторінка бюлетеня Health Service, ви можете включити цю сторінку в налаштуваннях -> конфіденційність",
|
||||
"settings": "Налаштування",
|
||||
"settings_all": "ВСІ",
|
||||
"settings_allow_biometrical_authentication": "Включити біометричну аутентифікацію",
|
||||
|
|
|
@ -585,6 +585,8 @@
|
|||
"send_your_wallet": "آپ کا بٹوہ",
|
||||
"sending": "بھیج رہا ہے۔",
|
||||
"sent": "بھیجا",
|
||||
"service_health_disabled": "سروس ہیلتھ بلیٹن غیر فعال ہے",
|
||||
"service_health_disabled_message": "یہ سروس ہیلتھ بلیٹن پیج ہے ، آپ اس صفحے کو ترتیبات کے تحت اہل بنا سکتے ہیں -> رازداری",
|
||||
"settings": "ترتیبات",
|
||||
"settings_all": "تمام",
|
||||
"settings_allow_biometrical_authentication": "بایومیٹریکل تصدیق کی اجازت دیں۔",
|
||||
|
|
|
@ -584,6 +584,8 @@
|
|||
"send_your_wallet": "Àpamọ́wọ́ yín",
|
||||
"sending": "Ó ń ránṣẹ́",
|
||||
"sent": "Owó t'á ti ránṣẹ́",
|
||||
"service_health_disabled": "IPỌRỌ IWE TI AGBARA TI O LE RẸ",
|
||||
"service_health_disabled_message": "Eyi ni oju-iwe Iwe itẹlera Iṣẹ Ile-iṣẹ Iṣẹ: O le mu oju-iwe yii ṣiṣẹ labẹ Eto -> Asiri",
|
||||
"settings": "Awọn aseṣe",
|
||||
"settings_all": "Gbogbo",
|
||||
"settings_allow_biometrical_authentication": "Fi àyè gba ìfẹ̀rílàdí biometrical",
|
||||
|
|
|
@ -583,6 +583,8 @@
|
|||
"send_your_wallet": "你的钱包",
|
||||
"sending": "正在发送",
|
||||
"sent": "已发送",
|
||||
"service_health_disabled": "服务健康公告被禁用",
|
||||
"service_health_disabled_message": "这是服务健康公告页面,您可以在设置 - >隐私下启用此页面",
|
||||
"settings": "设置",
|
||||
"settings_all": "全部",
|
||||
"settings_allow_biometrical_authentication": "允许生物识别认证",
|
||||
|
|
Loading…
Reference in a new issue