mirror of
https://gitlab.com/nkming2/nc-photos.git
synced 2025-01-22 08:46:18 +01:00
Direct users to sign up for Nextcloud if they don't have one
This commit is contained in:
parent
3e6f7eaf0e
commit
da27099f25
3 changed files with 10 additions and 1 deletions
|
@ -14,3 +14,5 @@ const editPhotosUrl = "https://bit.ly/3v82oKA";
|
|||
const collectionTypesUrl = "https://bit.ly/3OwSiNq";
|
||||
const contributorsUrl = "https://bit.ly/3QhlQQs";
|
||||
const videoPreviewUrl = "https://bit.ly/4c7cazP";
|
||||
|
||||
const nextcloudProviderUrl = "https://bit.ly/3xIzgL7";
|
||||
|
|
|
@ -12,9 +12,11 @@ import 'package:nc_photos/db/entity_converter.dart';
|
|||
import 'package:nc_photos/entity/pref.dart';
|
||||
import 'package:nc_photos/entity/pref_util.dart' as pref_util;
|
||||
import 'package:nc_photos/exception_event.dart';
|
||||
import 'package:nc_photos/help_utils.dart' as help_util;
|
||||
import 'package:nc_photos/legacy/connect.dart' as legacy;
|
||||
import 'package:nc_photos/snack_bar_manager.dart';
|
||||
import 'package:nc_photos/theme.dart';
|
||||
import 'package:nc_photos/url_launcher_util.dart';
|
||||
import 'package:nc_photos/widget/app_intermediate_circular_progress_indicator.dart';
|
||||
import 'package:nc_photos/widget/connect.dart';
|
||||
import 'package:nc_photos/widget/expandable_container.dart';
|
||||
|
|
|
@ -117,7 +117,12 @@ class _BodyState extends State<_Body> {
|
|||
.cancelButtonLabel),
|
||||
)
|
||||
else
|
||||
Container(),
|
||||
TextButton(
|
||||
onPressed: () {
|
||||
launch(help_util.nextcloudProviderUrl);
|
||||
},
|
||||
child: const Text("DON'T HAVE ONE?"),
|
||||
),
|
||||
ElevatedButton(
|
||||
onPressed: () {
|
||||
if (_formKey.currentState?.validate() == true) {
|
||||
|
|
Loading…
Reference in a new issue