PushRuleSettingsPopup: handle enter to save
This commit is contained in:
		@@ -1,6 +1,5 @@
 | 
				
			|||||||
# TODO
 | 
					# TODO
 | 
				
			||||||
 | 
					
 | 
				
			||||||
- enter in field
 | 
					 | 
				
			||||||
- sfx selection
 | 
					- sfx selection
 | 
				
			||||||
- custom action
 | 
					- custom action
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -78,6 +78,7 @@ HFlickableColumnPopup {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
    page.footer: AutoDirectionLayout {
 | 
					    page.footer: AutoDirectionLayout {
 | 
				
			||||||
        ApplyButton {
 | 
					        ApplyButton {
 | 
				
			||||||
 | 
					            id: applyButton
 | 
				
			||||||
            text: qsTr("Save changes")
 | 
					            text: qsTr("Save changes")
 | 
				
			||||||
            enabled: swipeView.currentItem.idField.text.trim() !== ""
 | 
					            enabled: swipeView.currentItem.idField.text.trim() !== ""
 | 
				
			||||||
            loading: saveFutureId !== ""
 | 
					            loading: saveFutureId !== ""
 | 
				
			||||||
@@ -98,6 +99,8 @@ HFlickableColumnPopup {
 | 
				
			|||||||
        }
 | 
					        }
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    onKeyboardAccept: applyButton.clicked()
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    CustomLabel {
 | 
					    CustomLabel {
 | 
				
			||||||
        visible: root.rule.default
 | 
					        visible: root.rule.default
 | 
				
			||||||
        text: qsTr("Some settings cannot be changed for default server rules")
 | 
					        text: qsTr("Some settings cannot be changed for default server rules")
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user