From 3f1187e1ecd3dfa04f8bdf8022b03e7d739d9b80 Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Fri, 8 Sep 2017 12:54:31 +0200 Subject: Generalize the single account concept. * The wizard get's configured with a list of available accounts. * If only a single account type is available we skip the selection. * For the first account, account setup can not be aborted. * In single account mode the account can not be removed. --- framework/qml/EditAccount.qml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'framework/qml') diff --git a/framework/qml/EditAccount.qml b/framework/qml/EditAccount.qml index 8600868f..25d3dba0 100644 --- a/framework/qml/EditAccount.qml +++ b/framework/qml/EditAccount.qml @@ -25,7 +25,7 @@ import org.kube.framework 1.0 as Kube Item { id: root property string accountId - property bool singleAccountMode: false + property bool canRemove: true Kube.AccountFactory { id: accountFactory @@ -114,7 +114,7 @@ Item { Kube.Button { text: qsTr("Remove Account") - visible: !root.singleAccountMode + visible: root.canRemove onClicked: { loader.item.remove() -- cgit v1.2.3