mirror of
https://gitlab.com/comunic/comunicmobile
synced 2024-11-22 21:09:21 +00:00
Can update email settings
This commit is contained in:
parent
6ba89b6bd1
commit
991d7ec1ab
@ -12,7 +12,7 @@ class GeneralSettings {
|
|||||||
final UserPageVisibility pageVisibility;
|
final UserPageVisibility pageVisibility;
|
||||||
final bool allowComments;
|
final bool allowComments;
|
||||||
final bool allowPostsFromFriends;
|
final bool allowPostsFromFriends;
|
||||||
final bool allowComunicEmails;
|
bool allowComunicEmails;
|
||||||
final bool publicFriendsList;
|
final bool publicFriendsList;
|
||||||
final String virtualDirectory;
|
final String virtualDirectory;
|
||||||
final String personalWebsite;
|
final String personalWebsite;
|
||||||
@ -36,7 +36,7 @@ class GeneralSettings {
|
|||||||
assert(pageVisibility != null),
|
assert(pageVisibility != null),
|
||||||
assert(allowComments != null),
|
assert(allowComments != null),
|
||||||
assert(allowPostsFromFriends != null),
|
assert(allowPostsFromFriends != null),
|
||||||
assert(allowComunicEmails),
|
assert(allowComunicEmails != null),
|
||||||
assert(publicFriendsList != null),
|
assert(publicFriendsList != null),
|
||||||
assert(virtualDirectory != null),
|
assert(virtualDirectory != null),
|
||||||
assert(personalWebsite != null),
|
assert(personalWebsite != null),
|
||||||
|
@ -98,6 +98,16 @@ class __GeneralAccountSettingsBodyState
|
|||||||
},
|
},
|
||||||
checkInput: (s) => s.length >= 3,
|
checkInput: (s) => s.length >= 3,
|
||||||
),
|
),
|
||||||
|
|
||||||
|
// Emails settings
|
||||||
|
SettingsTile.switchTile(
|
||||||
|
title: tr("Allow comunic to send emails"),
|
||||||
|
onToggle: (s) {
|
||||||
|
_settings.allowComunicEmails = s;
|
||||||
|
_updateSettings();
|
||||||
|
},
|
||||||
|
switchValue: _settings.allowComunicEmails,
|
||||||
|
),
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user