diff options
Diffstat (limited to 'components')
-rw-r--r-- | components/kube/contents/ui/ComposerView.qml | 8 |
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 |