Compare commits

...
3 Commits
Author SHA1 Message Date
soraefir 726c4a73dc Fix project creation nextcloud 2026-08-03 19:51:26 +02:00
soraefir 191f221faa Allow comma in title 2026-08-03 19:51:26 +02:00
sora 553e33d441 Merge pull request 'Configure Renovate' (#1) from renovate/configure into main
Reviewed-on: #1
2026-07-12 14:47:56 +02:00
2 changed files with 3 additions and 11 deletions
@@ -241,7 +241,7 @@ class EditBillViewModel : ViewModel() {
}
fun isFormValid(): Boolean {
return what.isNotEmpty() && !what.contains(",") &&
return what.isNotEmpty() &&
timestamp != 0L &&
payerId != 0L &&
owersSelection.any { it.value }
@@ -255,7 +255,7 @@ class EditBillViewModel : ViewModel() {
errorInvalidForm: String
): String? {
return when {
what.isEmpty() || what.contains(",") -> errorWhat
what.isEmpty() -> errorWhat
timestamp == 0L -> errorDate
payerId == 0L -> errorPayer
owersSelection.none { it.value } -> errorOwers
@@ -165,15 +165,7 @@ class NewProjectActivity : AppCompatActivity() {
null, false, DBProject.ACCESS_LEVEL_UNKNOWN,
""
)
if (isValidUrl(url) && todoCreate && ProjectType.COSPEND == type &&
db.cowspentServerSyncHelper.canCreateAuthenticatedProject(fakeProj) &&
!viewModel.showAuthWarningDialog // Avoid infinite loop
) {
viewModel.showAuthWarningDialog = true
} else {
createProject()
}
createProject()
}
private fun getFormattedUrl(): String {