feat: Add login page permissions hint

This commit is contained in:
Anton Stubenbord
2023-06-17 16:09:05 +02:00
parent cfb301c8f6
commit 6017cda477
9 changed files with 42 additions and 9 deletions

View File

@@ -9,6 +9,7 @@ class ServerLoginPage extends StatefulWidget {
final String submitText;
final Future<void> Function() onSubmit;
final GlobalKey<FormBuilderState> formBuilderKey;
const ServerLoginPage({
super.key,
required this.onSubmit,
@@ -49,7 +50,7 @@ class _ServerLoginPageState extends State<ServerLoginPage> {
onFieldsSubmitted: widget.onSubmit,
),
Text(
"Please make sure that the user has the permission to view users ('Users -> View') and view UI settings ('UISettings -> View).",
S.of(context)!.loginRequiredPermissionsHint,
style: Theme.of(context).textTheme.bodySmall?.apply(
color: Theme.of(context)
.colorScheme