mirror of
https://github.com/lubosz/overte.git
synced 2025-08-08 03:08:00 +02:00
Fix 'What's This' link
This commit is contained in:
parent
3c2626894c
commit
432e647f7a
1 changed files with 30 additions and 25 deletions
|
@ -35,6 +35,7 @@ Item {
|
||||||
visible: false;
|
visible: false;
|
||||||
anchors.fill: parent;
|
anchors.fill: parent;
|
||||||
}
|
}
|
||||||
|
|
||||||
// This object is always used in a popup.
|
// This object is always used in a popup.
|
||||||
// This MouseArea is used to prevent a user from being
|
// This MouseArea is used to prevent a user from being
|
||||||
// able to click on a button/mouseArea underneath the popup.
|
// able to click on a button/mouseArea underneath the popup.
|
||||||
|
@ -216,39 +217,43 @@ Item {
|
||||||
// "What's This?" link
|
// "What's This?" link
|
||||||
RalewayRegular {
|
RalewayRegular {
|
||||||
id: whatsThisLink;
|
id: whatsThisLink;
|
||||||
text: '<font color="#FFFFFF"><a href="#">What\'s this?</a></font>';
|
text: '<font color="#FFFFFF"><a href="#whatsthis">What\'s this?</a></font>';
|
||||||
// Anchors
|
// Anchors
|
||||||
anchors.bottom: parent.bottom;
|
anchors.bottom: parent.bottom;
|
||||||
anchors.bottomMargin: 24;
|
anchors.bottomMargin: 48;
|
||||||
width: parent.width;
|
anchors.horizontalCenter: parent.horizontalCenter;
|
||||||
|
width: paintedWidth;
|
||||||
height: paintedHeight;
|
height: paintedHeight;
|
||||||
// Text size
|
// Text size
|
||||||
size: 18;
|
size: 18;
|
||||||
// Style
|
// Style
|
||||||
color: hifi.colors.white;
|
color: hifi.colors.white;
|
||||||
horizontalAlignment: Text.AlignHCenter;
|
|
||||||
|
|
||||||
onLinkActivated: {
|
MouseArea {
|
||||||
if (root.activeView === "preexisting") {
|
anchors.fill: parent;
|
||||||
lightboxPopup.titleText = "Your wallet's private keys are not in the folder we expected";
|
|
||||||
lightboxPopup.bodyText = "We see that you have created a wallet but the private keys " +
|
onClicked: {
|
||||||
"for it seem to have been moved to a different folder.<br><br>" +
|
if (root.activeView === "preexisting") {
|
||||||
"To tell us where the keys are, click 'Locate My Keys'. <br><br>" +
|
lightboxPopup.titleText = "Your wallet's private keys are not in the folder we expected";
|
||||||
"If you'd prefer to create a new wallet (not recommended - you will lose your money and past " +
|
lightboxPopup.bodyText = "We see that you have created a wallet but the private keys " +
|
||||||
"purchases), click 'Create New Wallet'.";
|
"for it seem to have been moved to a different folder.<br><br>" +
|
||||||
lightboxPopup.button1text = "CLOSE";
|
"To tell us where the keys are, click 'Locate My Keys'. <br><br>" +
|
||||||
lightboxPopup.button1method = "root.visible = false;"
|
"If you'd prefer to create a new wallet (not recommended - you will lose your money and past " +
|
||||||
lightboxPopup.visible = true;
|
"purchases), click 'Create New Wallet'.";
|
||||||
} else {
|
lightboxPopup.button1text = "CLOSE";
|
||||||
lightboxPopup.titleText = "You may have set up more than one wallet";
|
lightboxPopup.button1method = "root.visible = false;"
|
||||||
lightboxPopup.bodyText = "We see that the private keys stored on your computer are different " +
|
lightboxPopup.visible = true;
|
||||||
"from the ones you used last time. This may mean that you set up more than one wallet. " +
|
} else {
|
||||||
"If you would like to use these keys, click 'Continue With These Keys'.<br><br>" +
|
lightboxPopup.titleText = "You may have set up more than one wallet";
|
||||||
"If you would prefer to use another wallet, click 'Locate Other Keys' to show us where " +
|
lightboxPopup.bodyText = "We see that the private keys stored on your computer are different " +
|
||||||
"you've stored the private keys for that wallet.";
|
"from the ones you used last time. This may mean that you set up more than one wallet. " +
|
||||||
lightboxPopup.button1text = "CLOSE";
|
"If you would like to use these keys, click 'Continue With These Keys'.<br><br>" +
|
||||||
lightboxPopup.button1method = "root.visible = false;"
|
"If you would prefer to use another wallet, click 'Locate Other Keys' to show us where " +
|
||||||
lightboxPopup.visible = true;
|
"you've stored the private keys for that wallet.";
|
||||||
|
lightboxPopup.button1text = "CLOSE";
|
||||||
|
lightboxPopup.button1method = "root.visible = false;"
|
||||||
|
lightboxPopup.visible = true;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue