add transfer all button for admins
All checks were successful
Release / meta (push) Successful in 6s
Release / linux-build (push) Successful in 1m4s
Release / web-build (push) Successful in 2m47s
Release / android-build (push) Successful in 11m45s
Release / release-master (push) Successful in 26s
Release / release-dev (push) Successful in 30s
All checks were successful
Release / meta (push) Successful in 6s
Release / linux-build (push) Successful in 1m4s
Release / web-build (push) Successful in 2m47s
Release / android-build (push) Successful in 11m45s
Release / release-master (push) Successful in 26s
Release / release-dev (push) Successful in 30s
This commit is contained in:
@@ -200,6 +200,22 @@ class _MyAppState extends State<MyApp> {
|
||||
(state.extra is Map
|
||||
? (state.extra as Map)['transferFromLabel']?.toString()
|
||||
: null);
|
||||
bool transferAllAllocations = false;
|
||||
final transferAllParam =
|
||||
state.uri.queryParameters['transferAll'] ??
|
||||
(state.extra is Map
|
||||
? (state.extra as Map)['transferAll']?.toString()
|
||||
: null);
|
||||
if (transferAllParam != null) {
|
||||
transferAllAllocations = transferAllParam.toLowerCase() == 'true' ||
|
||||
transferAllParam == '1';
|
||||
}
|
||||
if (!transferAllAllocations && state.extra is Map) {
|
||||
final raw = (state.extra as Map)['transferAll'];
|
||||
if (raw is bool) {
|
||||
transferAllAllocations = raw;
|
||||
}
|
||||
}
|
||||
final selectionMode =
|
||||
(selectionParam != null && selectionParam.isNotEmpty) ||
|
||||
replacementPendingLocoId != null ||
|
||||
@@ -215,6 +231,7 @@ class _MyAppState extends State<MyApp> {
|
||||
replacementPendingLocoId: replacementPendingLocoId,
|
||||
transferFromLabel: transferFromLabel,
|
||||
transferFromLocoId: transferFromLocoId,
|
||||
transferAllAllocations: transferAllAllocations,
|
||||
);
|
||||
},
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user