From 29846c929e742f875983db249f54d882560ecf74 Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Mon, 27 Nov 2017 14:56:49 +0100 Subject: Disable encryption buttons if keys are missing --- components/kube/contents/ui/ComposerView.qml | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'components') 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 { } RowLayout { + enabled: composerController.encryptionAvailable Kube.CheckBox { id: encryptCheckbox checked: composerController.encrypt @@ -455,6 +456,7 @@ Kube.View { } RowLayout { + enabled: composerController.encryptionAvailable Kube.CheckBox { id: signCheckbox checked: composerController.sign @@ -463,6 +465,12 @@ Kube.View { text: qsTr("sign") } } + Kube.Label { + visible: !composerController.encryptionAvailable + Layout.maximumWidth: parent.width + text: qsTr("Encryption is not available because your personal key has not been found.") + wrapMode: Text.Wrap + } RowLayout { Layout.maximumWidth: parent.width -- cgit v1.2.3