Chore/add object name rename keypair item (#14807)

* chore: add object name for rename keypair menu item

* chore: add object name save changes in rename keypair popup
This commit is contained in:
Valentina1133 2024-05-16 16:17:33 +07:00 committed by GitHub
parent 27bfe22af0
commit e9127f9cd7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 0 deletions

View File

@ -140,6 +140,7 @@ StatusModal {
}, },
StatusButton { StatusButton {
text: qsTr("Save changes") text: qsTr("Save changes")
objectName: "saveRenameKeypairChangesButton"
enabled: d.entryValid enabled: d.entryValid
focus: true focus: true
Keys.onReturnPressed: function(event) { Keys.onReturnPressed: function(event) {

View File

@ -80,6 +80,7 @@ StatusMenu {
StatusAction { StatusAction {
text: enabled? qsTr("Rename keypair") : "" text: enabled? qsTr("Rename keypair") : ""
objectName: "renameKeypairMenuItem"
enabled: !!root.keyPair && enabled: !!root.keyPair &&
root.keyPair.pairType !== Constants.keypair.type.profile root.keyPair.pairType !== Constants.keypair.type.profile
icon.name: "edit" icon.name: "edit"