High performance self-hosted photo and video management solution.
TypeScript backup-toolfluttergoogle-photosgoogle-photos-alternativejavascriptmobile-appnestjsnodejsphoto-galleryphotosphotos-managementself-hostedsveltesveltekittypescriptvideos
fix(mobile): allow create empty non-shared albums, add proper button colors (#12103)
src682adaa33456
diff --git a/mobile/lib/pages/common/create_album.page.dart b/mobile/lib/pages/common/create_album.page.dartindex 51282d8dd6..1fd860520d 100644--- a/mobile/lib/pages/common/create_album.page.dart+++ b/mobile/lib/pages/common/create_album.page.dart@@ -52,6 +52,7 @@ class CreateAlbumPage extends HookConsumerWidget {if (albumTitleController.text.isEmpty) {albumTitleController.text = 'create_album_page_untitled'.tr();+ isAlbumTitleEmpty.value = false;ref.watch(albumTitleProvider.notifier).setAlbumTitle('create_album_page_untitled'.tr());@@ -191,6 +192,7 @@ class CreateAlbumPage extends HookConsumerWidget {}createNonSharedAlbum() async {+ onBackgroundTapped();var newAlbum = await ref.watch(albumProvider.notifier).createAlbum(ref.watch(albumTitleProvider),selectedAssets.value,@@ -238,15 +240,16 @@ class CreateAlbumPage extends HookConsumerWidget {),if (!isSharedAlbum)TextButton(- onPressed: albumTitleController.text.isNotEmpty &&- selectedAssets.value.isNotEmpty+ onPressed: albumTitleController.text.isNotEmpty? createNonSharedAlbum: null,child: Text('create_shared_album_page_create'.tr(),style: TextStyle(fontWeight: FontWeight.bold,- color: context.primaryColor,+ color: albumTitleController.text.isNotEmpty+ ? context.primaryColor+ : context.themeData.disabledColor,),),),