PushRuleSettingsPopup: disable save if no rule ID

This commit is contained in:
miruka 2021-02-28 15:05:33 -04:00
parent e0b7974904
commit 41bc082044
2 changed files with 1 additions and 2 deletions

View File

@ -30,7 +30,6 @@ HColumnLayout {
id: idField id: idField
width: parent.width width: parent.width
defaultText: rule.rule_id defaultText: rule.rule_id
// TODO: minimum length, check no dupe
} }
} }

View File

@ -79,7 +79,7 @@ HFlickableColumnPopup {
page.footer: AutoDirectionLayout { page.footer: AutoDirectionLayout {
ApplyButton { ApplyButton {
text: qsTr("Save changes") text: qsTr("Save changes")
enabled: true // TODO enabled: swipeView.currentItem.idField.text.trim() !== ""
loading: saveFutureId !== "" loading: saveFutureId !== ""
onClicked: root.save() onClicked: root.save()
} }