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')),
),
SaveCancelButtons(
isHeader: true,
isHeader: false,
saveLabel: localization.actions,
isEnabled: entities.isNotEmpty,
isCancelEnabled: true,

View File

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

View File

@ -209,7 +209,6 @@ class UserDetailsVM {
appBuilder.rebuild();
});
print('## HERE 1');
confirmCallback(
context: context,
message: localization.changingPhoneDisablesTwoFactor,

View File

@ -116,7 +116,6 @@ void passwordCallback({
Function(String, String) callback,
bool alwaysRequire = false,
}) {
print('## HERE 2a');
final state = StoreProvider.of<AppState>(context).state;
if (state.authState.hasRecentlyEnteredPassword && !alwaysRequire) {
print('## hasRecentlyEnteredPassword...');
@ -125,7 +124,6 @@ void passwordCallback({
}
if (state.user.oauthProvider.isEmpty) {
print('## HERE 2b');
showDialog<Null>(
context: context,
barrierDismissible: false,