mirror of
https://github.com/immich-app/immich.git
synced 2024-12-29 15:11:58 +00:00
chore(mobile): put delete button before metadata editing (#5633)
This commit is contained in:
parent
f798e9beed
commit
f6ef226b64
1 changed files with 12 additions and 12 deletions
|
@ -92,18 +92,6 @@ class ControlBottomAppBar extends ConsumerWidget {
|
||||||
.tr(),
|
.tr(),
|
||||||
onPressed: enabled ? onFavorite : null,
|
onPressed: enabled ? onFavorite : null,
|
||||||
),
|
),
|
||||||
if (hasRemote && onEditTime != null)
|
|
||||||
ControlBoxButton(
|
|
||||||
iconData: Icons.edit_calendar_outlined,
|
|
||||||
label: "control_bottom_app_bar_edit_time".tr(),
|
|
||||||
onPressed: enabled ? onEditTime : null,
|
|
||||||
),
|
|
||||||
if (hasRemote && onEditLocation != null)
|
|
||||||
ControlBoxButton(
|
|
||||||
iconData: Icons.edit_location_alt_outlined,
|
|
||||||
label: "control_bottom_app_bar_edit_location".tr(),
|
|
||||||
onPressed: enabled ? onEditLocation : null,
|
|
||||||
),
|
|
||||||
if (onDelete != null)
|
if (onDelete != null)
|
||||||
ControlBoxButton(
|
ControlBoxButton(
|
||||||
iconData: Icons.delete_outline_rounded,
|
iconData: Icons.delete_outline_rounded,
|
||||||
|
@ -125,6 +113,18 @@ class ControlBottomAppBar extends ConsumerWidget {
|
||||||
}
|
}
|
||||||
: null,
|
: null,
|
||||||
),
|
),
|
||||||
|
if (hasRemote && onEditTime != null)
|
||||||
|
ControlBoxButton(
|
||||||
|
iconData: Icons.edit_calendar_outlined,
|
||||||
|
label: "control_bottom_app_bar_edit_time".tr(),
|
||||||
|
onPressed: enabled ? onEditTime : null,
|
||||||
|
),
|
||||||
|
if (hasRemote && onEditLocation != null)
|
||||||
|
ControlBoxButton(
|
||||||
|
iconData: Icons.edit_location_alt_outlined,
|
||||||
|
label: "control_bottom_app_bar_edit_location".tr(),
|
||||||
|
onPressed: enabled ? onEditLocation : null,
|
||||||
|
),
|
||||||
if (!hasLocal &&
|
if (!hasLocal &&
|
||||||
selectionAssetState.selectedCount > 1 &&
|
selectionAssetState.selectedCount > 1 &&
|
||||||
onStack != null)
|
onStack != null)
|
||||||
|
|
Loading…
Reference in a new issue