mirror of
https://github.com/immich-app/immich
synced 2025-11-14 17:36:12 +00:00
feat: action buttons place holder (#19561)
* feat: action buttons place holder * lint * Update base_action_button.widget.dart Co-authored-by: shenlong <139912620+shenlong-tanwen@users.noreply.github.com> --------- Co-authored-by: shenlong <139912620+shenlong-tanwen@users.noreply.github.com>
This commit is contained in:
parent
72a53f43c8
commit
97aabe466e
20 changed files with 341 additions and 26 deletions
|
|
@ -19,6 +19,14 @@ class MultiSelectState {
|
|||
});
|
||||
|
||||
bool get isEnabled => selectedAssets.isNotEmpty;
|
||||
bool get hasRemote => selectedAssets.any(
|
||||
(asset) =>
|
||||
asset.storage == AssetState.remote ||
|
||||
asset.storage == AssetState.merged,
|
||||
);
|
||||
bool get hasLocal => selectedAssets.any(
|
||||
(asset) => asset.storage == AssetState.local,
|
||||
);
|
||||
|
||||
MultiSelectState copyWith({
|
||||
Set<BaseAsset>? selectedAssets,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue