PushRuleSettingsPopup: disable save if no rule ID
This commit is contained in:
parent
e0b7974904
commit
41bc082044
|
@ -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
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -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()
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user