mirror of
https://github.com/Xevion/paperless-mobile.git
synced 2025-12-11 00:07:59 -06:00
feat: Add login page permissions hint
This commit is contained in:
@@ -9,6 +9,7 @@ class ServerLoginPage extends StatefulWidget {
|
|||||||
final String submitText;
|
final String submitText;
|
||||||
final Future<void> Function() onSubmit;
|
final Future<void> Function() onSubmit;
|
||||||
final GlobalKey<FormBuilderState> formBuilderKey;
|
final GlobalKey<FormBuilderState> formBuilderKey;
|
||||||
|
|
||||||
const ServerLoginPage({
|
const ServerLoginPage({
|
||||||
super.key,
|
super.key,
|
||||||
required this.onSubmit,
|
required this.onSubmit,
|
||||||
@@ -49,7 +50,7 @@ class _ServerLoginPageState extends State<ServerLoginPage> {
|
|||||||
onFieldsSubmitted: widget.onSubmit,
|
onFieldsSubmitted: widget.onSubmit,
|
||||||
),
|
),
|
||||||
Text(
|
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(
|
style: Theme.of(context).textTheme.bodySmall?.apply(
|
||||||
color: Theme.of(context)
|
color: Theme.of(context)
|
||||||
.colorScheme
|
.colorScheme
|
||||||
|
|||||||
@@ -825,36 +825,40 @@
|
|||||||
"description": "title of the alert dialog when exporting scans to pdf"
|
"description": "title of the alert dialog when exporting scans to pdf"
|
||||||
},
|
},
|
||||||
"allScansWillBeMerged": "Els escanejos s'uniran en un únic document PDF.",
|
"allScansWillBeMerged": "Els escanejos s'uniran en un únic document PDF.",
|
||||||
"behavior": "Behavior",
|
"behavior": "Comportament",
|
||||||
"@behavior": {
|
"@behavior": {
|
||||||
"description": "Title of the settings concerning app beahvior"
|
"description": "Title of the settings concerning app beahvior"
|
||||||
},
|
},
|
||||||
"theme": "Theme",
|
"theme": "Tema",
|
||||||
"@theme": {
|
"@theme": {
|
||||||
"description": "Title of the theme mode setting"
|
"description": "Title of the theme mode setting"
|
||||||
},
|
},
|
||||||
"clearCache": "Clear cache",
|
"clearCache": "Esborra cache",
|
||||||
"@clearCache": {
|
"@clearCache": {
|
||||||
"description": "Title of the clear cache setting"
|
"description": "Title of the clear cache setting"
|
||||||
},
|
},
|
||||||
"freeBytes": "Free {bytes}",
|
"freeBytes": "Lliure {bytes}",
|
||||||
"@freeBytes": {
|
"@freeBytes": {
|
||||||
"description": "Text shown for clear storage settings"
|
"description": "Text shown for clear storage settings"
|
||||||
},
|
},
|
||||||
"calculatingDots": "Calculating...",
|
"calculatingDots": "Calculant...",
|
||||||
"@calculatingDots": {
|
"@calculatingDots": {
|
||||||
"description": "Text shown when the byte size is still being calculated"
|
"description": "Text shown when the byte size is still being calculated"
|
||||||
},
|
},
|
||||||
"freedDiskSpace": "Successfully freed {bytes} of disk space.",
|
"freedDiskSpace": "Alliberats {bytes} d'espai de disc.",
|
||||||
"@freedDiskSpace": {
|
"@freedDiskSpace": {
|
||||||
"description": "Message shown after clearing storage"
|
"description": "Message shown after clearing storage"
|
||||||
},
|
},
|
||||||
"uploadScansAsPdf": "Upload scans as PDF",
|
"uploadScansAsPdf": "Puja escanejos com a PDF",
|
||||||
"@uploadScansAsPdf": {
|
"@uploadScansAsPdf": {
|
||||||
"description": "Title of the setting which toggles whether scans are always uploaded as pdf"
|
"description": "Title of the setting which toggles whether scans are always uploaded as pdf"
|
||||||
},
|
},
|
||||||
"convertSinglePageScanToPdf": "Always convert single page scans to PDF before uploading",
|
"convertSinglePageScanToPdf": "Coverteix únics escanejos a PDF abans de pujar",
|
||||||
"@convertSinglePageScanToPdf": {
|
"@convertSinglePageScanToPdf": {
|
||||||
"description": "description of the upload scans as pdf setting"
|
"description": "description of the upload scans as pdf setting"
|
||||||
|
},
|
||||||
|
"loginRequiredPermissionsHint": "Using Paperless Mobile requires a minimum set of user permissions since paperless-ngx 1.14.0 and higher. Therefore, please make sure that the user to be logged in has the permission to view other users (User → View) and the settings (UISettings → View). If you do not have these permissions, please contact an administrator of your paperless-ngx server.",
|
||||||
|
"@loginRequiredPermissionsHint": {
|
||||||
|
"description": "Hint shown on the login page informing the user of the required permissions to use the app."
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -856,5 +856,9 @@
|
|||||||
"convertSinglePageScanToPdf": "Always convert single page scans to PDF before uploading",
|
"convertSinglePageScanToPdf": "Always convert single page scans to PDF before uploading",
|
||||||
"@convertSinglePageScanToPdf": {
|
"@convertSinglePageScanToPdf": {
|
||||||
"description": "description of the upload scans as pdf setting"
|
"description": "description of the upload scans as pdf setting"
|
||||||
|
},
|
||||||
|
"loginRequiredPermissionsHint": "Using Paperless Mobile requires a minimum set of user permissions since paperless-ngx 1.14.0 and higher. Therefore, please make sure that the user to be logged in has the permission to view other users (User → View) and the settings (UISettings → View). If you do not have these permissions, please contact an administrator of your paperless-ngx server.",
|
||||||
|
"@loginRequiredPermissionsHint": {
|
||||||
|
"description": "Hint shown on the login page informing the user of the required permissions to use the app."
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -856,5 +856,9 @@
|
|||||||
"convertSinglePageScanToPdf": "Einseitige Scans vor dem Hochladen immer in PDF umwandeln",
|
"convertSinglePageScanToPdf": "Einseitige Scans vor dem Hochladen immer in PDF umwandeln",
|
||||||
"@convertSinglePageScanToPdf": {
|
"@convertSinglePageScanToPdf": {
|
||||||
"description": "description of the upload scans as pdf setting"
|
"description": "description of the upload scans as pdf setting"
|
||||||
|
},
|
||||||
|
"loginRequiredPermissionsHint": "Die Verwendung von Paperless Mobile erfordert seit paperless-ngx 1.14.0 und höher ein Mindestmaß an Benutzerberechtigungen. Stelle deshalb bitte sicher, dass der anzumeldende Benutzer die Berechtigung hat, andere Benutzer (User → View) und die Einstellungen (UISettings → View) einzusehen. Falls du nicht über diese Berechtigungen verfügst, wende dich bitte an einen Administrator deines paperless-ngx Servers.",
|
||||||
|
"@loginRequiredPermissionsHint": {
|
||||||
|
"description": "Hint shown on the login page informing the user of the required permissions to use the app."
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -856,5 +856,9 @@
|
|||||||
"convertSinglePageScanToPdf": "Always convert single page scans to PDF before uploading",
|
"convertSinglePageScanToPdf": "Always convert single page scans to PDF before uploading",
|
||||||
"@convertSinglePageScanToPdf": {
|
"@convertSinglePageScanToPdf": {
|
||||||
"description": "description of the upload scans as pdf setting"
|
"description": "description of the upload scans as pdf setting"
|
||||||
|
},
|
||||||
|
"loginRequiredPermissionsHint": "Using Paperless Mobile requires a minimum set of user permissions since paperless-ngx 1.14.0 and higher. Therefore, please make sure that the user to be logged in has the permission to view other users (User → View) and the settings (UISettings → View). If you do not have these permissions, please contact an administrator of your paperless-ngx server.",
|
||||||
|
"@loginRequiredPermissionsHint": {
|
||||||
|
"description": "Hint shown on the login page informing the user of the required permissions to use the app."
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -856,5 +856,9 @@
|
|||||||
"convertSinglePageScanToPdf": "Always convert single page scans to PDF before uploading",
|
"convertSinglePageScanToPdf": "Always convert single page scans to PDF before uploading",
|
||||||
"@convertSinglePageScanToPdf": {
|
"@convertSinglePageScanToPdf": {
|
||||||
"description": "description of the upload scans as pdf setting"
|
"description": "description of the upload scans as pdf setting"
|
||||||
|
},
|
||||||
|
"loginRequiredPermissionsHint": "Using Paperless Mobile requires a minimum set of user permissions since paperless-ngx 1.14.0 and higher. Therefore, please make sure that the user to be logged in has the permission to view other users (User → View) and the settings (UISettings → View). If you do not have these permissions, please contact an administrator of your paperless-ngx server.",
|
||||||
|
"@loginRequiredPermissionsHint": {
|
||||||
|
"description": "Hint shown on the login page informing the user of the required permissions to use the app."
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -856,5 +856,9 @@
|
|||||||
"convertSinglePageScanToPdf": "Always convert single page scans to PDF before uploading",
|
"convertSinglePageScanToPdf": "Always convert single page scans to PDF before uploading",
|
||||||
"@convertSinglePageScanToPdf": {
|
"@convertSinglePageScanToPdf": {
|
||||||
"description": "description of the upload scans as pdf setting"
|
"description": "description of the upload scans as pdf setting"
|
||||||
|
},
|
||||||
|
"loginRequiredPermissionsHint": "Using Paperless Mobile requires a minimum set of user permissions since paperless-ngx 1.14.0 and higher. Therefore, please make sure that the user to be logged in has the permission to view other users (User → View) and the settings (UISettings → View). If you do not have these permissions, please contact an administrator of your paperless-ngx server.",
|
||||||
|
"@loginRequiredPermissionsHint": {
|
||||||
|
"description": "Hint shown on the login page informing the user of the required permissions to use the app."
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -856,5 +856,9 @@
|
|||||||
"convertSinglePageScanToPdf": "Always convert single page scans to PDF before uploading",
|
"convertSinglePageScanToPdf": "Always convert single page scans to PDF before uploading",
|
||||||
"@convertSinglePageScanToPdf": {
|
"@convertSinglePageScanToPdf": {
|
||||||
"description": "description of the upload scans as pdf setting"
|
"description": "description of the upload scans as pdf setting"
|
||||||
|
},
|
||||||
|
"loginRequiredPermissionsHint": "Using Paperless Mobile requires a minimum set of user permissions since paperless-ngx 1.14.0 and higher. Therefore, please make sure that the user to be logged in has the permission to view other users (User → View) and the settings (UISettings → View). If you do not have these permissions, please contact an administrator of your paperless-ngx server.",
|
||||||
|
"@loginRequiredPermissionsHint": {
|
||||||
|
"description": "Hint shown on the login page informing the user of the required permissions to use the app."
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -856,5 +856,9 @@
|
|||||||
"convertSinglePageScanToPdf": "Always convert single page scans to PDF before uploading",
|
"convertSinglePageScanToPdf": "Always convert single page scans to PDF before uploading",
|
||||||
"@convertSinglePageScanToPdf": {
|
"@convertSinglePageScanToPdf": {
|
||||||
"description": "description of the upload scans as pdf setting"
|
"description": "description of the upload scans as pdf setting"
|
||||||
|
},
|
||||||
|
"loginRequiredPermissionsHint": "Using Paperless Mobile requires a minimum set of user permissions since paperless-ngx 1.14.0 and higher. Therefore, please make sure that the user to be logged in has the permission to view other users (User → View) and the settings (UISettings → View). If you do not have these permissions, please contact an administrator of your paperless-ngx server.",
|
||||||
|
"@loginRequiredPermissionsHint": {
|
||||||
|
"description": "Hint shown on the login page informing the user of the required permissions to use the app."
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user