mirror of
https://github.com/immich-app/immich.git
synced 2024-12-25 10:43:13 +02:00
Fix/mobile remove upload soft limit (#4380)
* fix(mobile): remove soft limit for manual upload * chore(mobile): remove translation text
This commit is contained in:
parent
8d5bf93360
commit
c48d4f01dc
@ -163,7 +163,6 @@
|
|||||||
"home_page_building_timeline": "Building the timeline",
|
"home_page_building_timeline": "Building the timeline",
|
||||||
"home_page_favorite_err_local": "Can not favorite local assets yet, skipping",
|
"home_page_favorite_err_local": "Can not favorite local assets yet, skipping",
|
||||||
"home_page_first_time_notice": "If this is your first time using the app, please make sure to choose a backup album(s) so that the timeline can populate photos and videos in the album(s).",
|
"home_page_first_time_notice": "If this is your first time using the app, please make sure to choose a backup album(s) so that the timeline can populate photos and videos in the album(s).",
|
||||||
"home_page_upload_err_limit": "Can only upload a maximum of 30 assets at a time, skipping",
|
|
||||||
"image_viewer_page_state_provider_download_error": "Download Error",
|
"image_viewer_page_state_provider_download_error": "Download Error",
|
||||||
"image_viewer_page_state_provider_download_success": "Download Success",
|
"image_viewer_page_state_provider_download_success": "Download Success",
|
||||||
"library_page_albums": "Albums",
|
"library_page_albums": "Albums",
|
||||||
|
@ -162,23 +162,13 @@ class HomePage extends HookConsumerWidget {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void onUpload() async {
|
void onUpload() {
|
||||||
processing.value = true;
|
processing.value = true;
|
||||||
|
selectionEnabledHook.value = false;
|
||||||
try {
|
try {
|
||||||
final Set<Asset> assets = selection.value;
|
ref
|
||||||
if (assets.length > 30) {
|
.read(manualUploadProvider.notifier)
|
||||||
ImmichToast.show(
|
.uploadAssets(context, selection.value);
|
||||||
context: context,
|
|
||||||
msg: 'home_page_upload_err_limit'.tr(),
|
|
||||||
gravity: ToastGravity.BOTTOM,
|
|
||||||
);
|
|
||||||
} else {
|
|
||||||
processing.value = false;
|
|
||||||
selectionEnabledHook.value = false;
|
|
||||||
await ref
|
|
||||||
.read(manualUploadProvider.notifier)
|
|
||||||
.uploadAssets(context, assets);
|
|
||||||
}
|
|
||||||
} finally {
|
} finally {
|
||||||
processing.value = false;
|
processing.value = false;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user