mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-22 10:06:23 +08:00
@@ -29,10 +29,12 @@ class CreateVoteController extends GetxController {
|
||||
|
||||
void updateCanCreate() {
|
||||
if (type.value == 0) {
|
||||
canCreate.value = title.value.isNotEmpty &&
|
||||
canCreate.value =
|
||||
title.value.isNotEmpty &&
|
||||
options.every((e) => e.optDesc?.isNotEmpty == true);
|
||||
} else {
|
||||
canCreate.value = title.value.isNotEmpty &&
|
||||
canCreate.value =
|
||||
title.value.isNotEmpty &&
|
||||
options.every(
|
||||
(e) =>
|
||||
e.optDesc?.isNotEmpty == true && e.imgUrl?.isNotEmpty == true,
|
||||
|
||||
Reference in New Issue
Block a user