Merge pull request #200 from pangeachat/Adjusted-Learning-Settings

Adjusted learning settings
pull/1183/head
ggurdin 2 years ago committed by GitHub
commit 0bb5361603
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -2504,7 +2504,7 @@
"type": "text", "type": "text",
"placeholders": {} "placeholders": {}
}, },
"interactiveTranslatorAllowedDesc": "Students can choose whether to use translation assistance in space group chats in Settings > Learning Settings.", "interactiveTranslatorAllowedDesc": "Students can choose whether to use translation assistance in space group chats in Main Menu > My Learning Settings.",
"@interactiveTranslatorAllowedDesc": { "@interactiveTranslatorAllowedDesc": {
"type": "text", "type": "text",
"placeholders": {} "placeholders": {}
@ -2984,9 +2984,9 @@
"errorDisableLanguageAssistanceClassDesc": "Translation assistance and grammar assistance are turned off for the space that this chat is in.", "errorDisableLanguageAssistanceClassDesc": "Translation assistance and grammar assistance are turned off for the space that this chat is in.",
"itIsDisabled": "Interactive Translation is disabled", "itIsDisabled": "Interactive Translation is disabled",
"igcIsDisabled": "Interactive Grammar Checking is disabled", "igcIsDisabled": "Interactive Grammar Checking is disabled",
"goToLearningSettings": "Go to Learning Settings", "goToLearningSettings": "Go to My Learning Settings",
"error405Title": "Languages not set", "error405Title": "Languages not set",
"error405Desc": "Please set your languages in Settings > Learning Settings", "error405Desc": "Please set your languages in Main Menu > My Learning Settings.",
"loginOrSignup": "Sign in with", "loginOrSignup": "Sign in with",
"@loginOrSignup": { "@loginOrSignup": {
"type": "text", "type": "text",
@ -3049,7 +3049,7 @@
"type": "text", "type": "text",
"placeholders": {} "placeholders": {}
}, },
"learningSettings": "Learning Settings", "learningSettings": "My Learning Settings",
"classNameRequired": "Please enter a space name", "classNameRequired": "Please enter a space name",
"@classNameRequired": { "@classNameRequired": {
"type": "text", "type": "text",
@ -3947,4 +3947,4 @@
"noPaymentInfo": "No payment info necessary!", "noPaymentInfo": "No payment info necessary!",
"updatePhoneOS": "You may need to update your device's OS version.", "updatePhoneOS": "You may need to update your device's OS version.",
"wordsPerMinute": "Words per minute" "wordsPerMinute": "Words per minute"
} }

@ -154,6 +154,18 @@ class ClientChooserButton extends StatelessWidget {
], ],
), ),
), ),
// #Pangea
PopupMenuItem(
value: SettingsAction.learning,
child: Row(
children: [
const Icon(Icons.psychology_outlined),
const SizedBox(width: 18),
Expanded(child: Text(L10n.of(context)!.learningSettings)),
],
),
),
// Pangea#
PopupMenuItem( PopupMenuItem(
value: SettingsAction.settings, value: SettingsAction.settings,
child: Row( child: Row(
@ -382,6 +394,9 @@ class ClientChooserButton extends StatelessWidget {
case SettingsAction.setStatus: case SettingsAction.setStatus:
controller.setStatus(); controller.setStatus();
// #Pangea // #Pangea
case SettingsAction.learning:
context.go('/rooms/settings/learning');
break;
case SettingsAction.newClass: case SettingsAction.newClass:
context.go('/rooms/newspace'); context.go('/rooms/newspace');
break; break;
@ -493,6 +508,7 @@ enum SettingsAction {
settings, settings,
archive, archive,
// #Pangea // #Pangea
learning,
joinWithClassCode, joinWithClassCode,
classAnalytics, classAnalytics,
myAnalytics, myAnalytics,

@ -181,14 +181,6 @@ class SettingsView extends StatelessWidget {
trailing: const Icon(Icons.chevron_right_outlined), trailing: const Icon(Icons.chevron_right_outlined),
), ),
// #Pangea // #Pangea
ListTile(
leading: const Icon(Icons.account_circle_outlined),
title: Text(L10n.of(context)!.learningSettings),
onTap: () => context.go('/rooms/settings/learning'),
trailing: const Icon(
Icons.chevron_right_outlined,
),
),
ListTile( ListTile(
leading: const Icon(Icons.account_circle_outlined), leading: const Icon(Icons.account_circle_outlined),
title: Text(L10n.of(context)!.subscriptionManagement), title: Text(L10n.of(context)!.subscriptionManagement),

Loading…
Cancel
Save