PushRuleSettingsPopup: disable save if no rule ID
This commit is contained in:
parent
e0b7974904
commit
41bc082044
|
@ -30,7 +30,6 @@ HColumnLayout {
|
|||
id: idField
|
||||
width: parent.width
|
||||
defaultText: rule.rule_id
|
||||
// TODO: minimum length, check no dupe
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -79,7 +79,7 @@ HFlickableColumnPopup {
|
|||
page.footer: AutoDirectionLayout {
|
||||
ApplyButton {
|
||||
text: qsTr("Save changes")
|
||||
enabled: true // TODO
|
||||
enabled: swipeView.currentItem.idField.text.trim() !== ""
|
||||
loading: saveFutureId !== ""
|
||||
onClicked: root.save()
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user