Correct save

This commit is contained in:
Hillel Coren 2021-05-02 19:46:19 +03:00
parent 53088a67a7
commit 9e83a2ec6a
4 changed files with 22 additions and 24 deletions

View File

@ -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,

View File

@ -295,6 +295,7 @@ class _UserDetailsState extends State<UserDetails>
(b) => b..userCompany.settings.accentColor = value)); (b) => b..userCompany.settings.accentColor = value));
}, },
), ),
if (state.company.isLarge)
AppDropdownButton<int>( AppDropdownButton<int>(
labelText: localization.numberYearsActive, labelText: localization.numberYearsActive,
value: user.userCompany.settings.numberYearsActive, value: user.userCompany.settings.numberYearsActive,

View File

@ -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,

View File

@ -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,