summaryrefslogtreecommitdiffstats
path: root/components
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2017-11-27 14:56:49 +0100
committerChristian Mollekopf <chrigi_1@fastmail.fm>2017-11-27 14:57:46 +0100
commit29846c929e742f875983db249f54d882560ecf74 (patch)
tree33d13b211aeb798758bd260abef465c020cfa376 /components
parentf232ff26c961768b2276f44100f522be243c598b (diff)
downloadkube-29846c929e742f875983db249f54d882560ecf74.tar.gz
kube-29846c929e742f875983db249f54d882560ecf74.zip
Disable encryption buttons if keys are missing
Diffstat (limited to 'components')
-rw-r--r--components/kube/contents/ui/ComposerView.qml8
1 files changed, 8 insertions, 0 deletions
diff --git a/components/kube/contents/ui/ComposerView.qml b/components/kube/contents/ui/ComposerView.qml
index 520b8113..0b81ab2a 100644
--- a/components/kube/contents/ui/ComposerView.qml
+++ b/components/kube/contents/ui/ComposerView.qml
@@ -445,6 +445,7 @@ Kube.View {
445 } 445 }
446 446
447 RowLayout { 447 RowLayout {
448 enabled: composerController.encryptionAvailable
448 Kube.CheckBox { 449 Kube.CheckBox {
449 id: encryptCheckbox 450 id: encryptCheckbox
450 checked: composerController.encrypt 451 checked: composerController.encrypt
@@ -455,6 +456,7 @@ Kube.View {
455 } 456 }
456 457
457 RowLayout { 458 RowLayout {
459 enabled: composerController.encryptionAvailable
458 Kube.CheckBox { 460 Kube.CheckBox {
459 id: signCheckbox 461 id: signCheckbox
460 checked: composerController.sign 462 checked: composerController.sign
@@ -463,6 +465,12 @@ Kube.View {
463 text: qsTr("sign") 465 text: qsTr("sign")
464 } 466 }
465 } 467 }
468 Kube.Label {
469 visible: !composerController.encryptionAvailable
470 Layout.maximumWidth: parent.width
471 text: qsTr("Encryption is not available because your personal key has not been found.")
472 wrapMode: Text.Wrap
473 }
466 474
467 RowLayout { 475 RowLayout {
468 Layout.maximumWidth: parent.width 476 Layout.maximumWidth: parent.width