Correct save
This commit is contained in:
parent
53088a67a7
commit
9e83a2ec6a
|
|
@ -437,7 +437,7 @@ class _EntityListState extends State<EntityList> {
|
||||||
.replaceFirst(':count', '$countSelected')),
|
.replaceFirst(':count', '$countSelected')),
|
||||||
),
|
),
|
||||||
SaveCancelButtons(
|
SaveCancelButtons(
|
||||||
isHeader: true,
|
isHeader: false,
|
||||||
saveLabel: localization.actions,
|
saveLabel: localization.actions,
|
||||||
isEnabled: entities.isNotEmpty,
|
isEnabled: entities.isNotEmpty,
|
||||||
isCancelEnabled: true,
|
isCancelEnabled: true,
|
||||||
|
|
|
||||||
|
|
@ -295,26 +295,27 @@ class _UserDetailsState extends State<UserDetails>
|
||||||
(b) => b..userCompany.settings.accentColor = value));
|
(b) => b..userCompany.settings.accentColor = value));
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
AppDropdownButton<int>(
|
if (state.company.isLarge)
|
||||||
labelText: localization.numberYearsActive,
|
AppDropdownButton<int>(
|
||||||
value: user.userCompany.settings.numberYearsActive,
|
labelText: localization.numberYearsActive,
|
||||||
onChanged: (dynamic value) {
|
value: user.userCompany.settings.numberYearsActive,
|
||||||
widget.viewModel.onChanged(user.rebuild((b) =>
|
onChanged: (dynamic value) {
|
||||||
b..userCompany.settings.numberYearsActive = value));
|
widget.viewModel.onChanged(user.rebuild((b) =>
|
||||||
},
|
b..userCompany.settings.numberYearsActive = value));
|
||||||
items: [
|
},
|
||||||
DropdownMenuItem(
|
items: [
|
||||||
child: Text(localization.all),
|
DropdownMenuItem(
|
||||||
value: 0,
|
child: Text(localization.all),
|
||||||
),
|
value: 0,
|
||||||
...List<int>.generate(10, (i) => i + 1)
|
),
|
||||||
.map((value) => DropdownMenuItem(
|
...List<int>.generate(10, (i) => i + 1)
|
||||||
child: Text('$value'),
|
.map((value) => DropdownMenuItem(
|
||||||
value: value,
|
child: Text('$value'),
|
||||||
))
|
value: value,
|
||||||
.toList()
|
))
|
||||||
],
|
.toList()
|
||||||
),
|
],
|
||||||
|
),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
|
|
|
||||||
|
|
@ -209,7 +209,6 @@ class UserDetailsVM {
|
||||||
appBuilder.rebuild();
|
appBuilder.rebuild();
|
||||||
});
|
});
|
||||||
|
|
||||||
print('## HERE 1');
|
|
||||||
confirmCallback(
|
confirmCallback(
|
||||||
context: context,
|
context: context,
|
||||||
message: localization.changingPhoneDisablesTwoFactor,
|
message: localization.changingPhoneDisablesTwoFactor,
|
||||||
|
|
|
||||||
|
|
@ -116,7 +116,6 @@ void passwordCallback({
|
||||||
Function(String, String) callback,
|
Function(String, String) callback,
|
||||||
bool alwaysRequire = false,
|
bool alwaysRequire = false,
|
||||||
}) {
|
}) {
|
||||||
print('## HERE 2a');
|
|
||||||
final state = StoreProvider.of<AppState>(context).state;
|
final state = StoreProvider.of<AppState>(context).state;
|
||||||
if (state.authState.hasRecentlyEnteredPassword && !alwaysRequire) {
|
if (state.authState.hasRecentlyEnteredPassword && !alwaysRequire) {
|
||||||
print('## hasRecentlyEnteredPassword...');
|
print('## hasRecentlyEnteredPassword...');
|
||||||
|
|
@ -125,7 +124,6 @@ void passwordCallback({
|
||||||
}
|
}
|
||||||
|
|
||||||
if (state.user.oauthProvider.isEmpty) {
|
if (state.user.oauthProvider.isEmpty) {
|
||||||
print('## HERE 2b');
|
|
||||||
showDialog<Null>(
|
showDialog<Null>(
|
||||||
context: context,
|
context: context,
|
||||||
barrierDismissible: false,
|
barrierDismissible: false,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue