kopia lustrzana https://gitlab.com/mysocialportal/relatica
Fix multiclick error on post creation/editing
rodzic
fe502f8056
commit
1157e2cb56
|
@ -141,6 +141,10 @@ class _EditorScreenState extends State<EditorScreen> {
|
|||
|
||||
Future<void> createStatus(
|
||||
BuildContext context, TimelineManager manager) async {
|
||||
if (isSubmitting) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (isEmptyPost) {
|
||||
buildSnackbar(context, "Can't submit an empty $statusType");
|
||||
return;
|
||||
|
@ -178,6 +182,10 @@ class _EditorScreenState extends State<EditorScreen> {
|
|||
}
|
||||
|
||||
Future<void> editStatus(BuildContext context, TimelineManager manager) async {
|
||||
if (isSubmitting) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (isEmptyPost) {
|
||||
buildSnackbar(context, "Can't submit an empty $statusType");
|
||||
return;
|
||||
|
|
Ładowanie…
Reference in New Issue