Linked key and ca file configuration to vpn execution. Added option to
[openvpnui.git] / qml / components / ValueButtonAlignRight.qml
index 899e16f..12fcb9d 100644 (file)
@@ -39,7 +39,6 @@ BackgroundItem {
     id: root
 
     property alias label: titleText.text
-    property alias value: valueText.text
 
     property alias labelColor: titleText.color
     property alias valueColor: valueText.color
@@ -47,6 +46,8 @@ BackgroundItem {
     property real labelMargin: Theme.paddingLarge
 
     property int _duration: 200
+    property string value
+    property string placeholderText
 
     width: parent ? parent.width : 0
     height: contentItem.height
@@ -75,6 +76,7 @@ BackgroundItem {
             width: Math.min(implicitWidth, parent.width)
             truncationMode: TruncationMode.Fade
             horizontalAlignment: ((implicitWidth <= (parent.width - titleText.width)) ? Text.AlignLeft : Text.AlignRight)
+            text: (value != "" ? value : placeholderText)
         }
     }
 }