Skip to content

Commit

Permalink
renew/upgrade for success
Browse files Browse the repository at this point in the history
  • Loading branch information
rustdesk committed Sep 10, 2023
1 parent 54936b8 commit 17744b5
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 24 deletions.
2 changes: 1 addition & 1 deletion content/self-host/rustdesk-server-pro/license/_index.en.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ You can find renew/upgrade as below (please refresh browser if you can not see)
| -- | -- |
| ![](/docs/en/self-host/rustdesk-server-pro/license/images/renew.jpg) | ![](/docs/en/self-host/rustdesk-server-pro/license/images/upgrade.png) |

After payment, you need to go ahead to web console to make the license taking effective manually as below. Just click on `edit`, then `Ok`, no need to edit anything, because your license key remains the same.
After payment, you need to proceed to the web console to activate it manually as below. Just click on `edit`, then `Ok`, no need to edit anything, because your license key remains the same.

![](/docs/en/self-host/rustdesk-server-pro/license/images/updatelic.jpg)

Expand Down
42 changes: 19 additions & 23 deletions v2/success.html
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
<script type="text/javascript">!function(o,c){var n=c.documentElement,t=" w-mod-";n.className+=t+"js",("ontouchstart"in o||o.DocumentTouch&&c instanceof DocumentTouch)&&(n.className+=t+"touch")}(window,document);</script>
<link href="images/favicon.png?v2" rel="shortcut icon" type="image/x-icon">
<link href="images/webclip.png" rel="apple-touch-icon">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/cookieconsent@3.1.1/build/cookieconsent.min.css">
<style>
:root {
--accent: #024eff;
Expand Down Expand Up @@ -205,9 +204,17 @@
<div class="uui-text-align-center-7">
<h1 class="uui-heading-large-2">Payment successful!</h1>
<div class="uui-space-small-3"></div>
<div id="newlic">
<div class="uui-text-size-xlarge-3">Your license has been sent by email.<br>Please contact us at<a href="mailto: support@rustdesk.com" target="_blank"> support@rustdesk.com</a> if you didn&#x27;t receive the email.</div>
<div class="uui-space-small-3"></div>
<div class="uui-text-size-xlarge-3">Getting Started? Read our <a href="https://rustdesk.com/docs/en/self-host/rustdesk-server-pro/" target="_blank"> docs</a>.</div>
</div>
<div id="renewlic" style="display:none">
<div class="uui-text-size-xlarge-3">Your license has been renewed, please proceed to the web console to <a href="https://rustdesk.com/docs/en/self-host/rustdesk-server-pro/license/#renewupgrade-license">activate it</a>.</div>
</div>
<div id="upgradelic"style="display:none">
<div class="uui-text-size-xlarge-3">Your license has been upgraded, please proceed to the web console to <a href="https://rustdesk.com/docs/en/self-host/rustdesk-server-pro/license/#renewupgrade-license">activate it</a>.</div>
</div>
</div>
</div>
</div>
Expand Down Expand Up @@ -319,6 +326,17 @@ <h1 class="uui-heading-large-2">Payment successful!</h1>
localStorage.setItem("hide-scammer", "Y");
});
}
var newlic = document.getElementById("newlic");
var renewlic = document.getElementById("renewlic");
var upgradelic = document.getElementById("upgradelic");
if (location.href.indexOf("action=renew") > 0) {
newlic.style.display = 'none';
renewlic.style.display = 'block';
}
if (location.href.indexOf("action=upgrade") > 0) {
newlic.style.display = 'none';
upgradelic.style.display = 'block';
}
});
</script>
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-178912857-1"></script>
Expand All @@ -329,27 +347,5 @@ <h1 class="uui-heading-large-2">Payment successful!</h1>

gtag('config', 'UA-178912857-1');
</script>
<script src="https://cdn.jsdelivr.net/npm/cookieconsent@3.1.1/build/cookieconsent.min.js"></script>
<script>
window.addEventListener("load", function(){
window.cookieconsent.initialise({
"palette": {
"popup": {
"background": "#edeff5",
"text": "#838391"
},
"button": {
"background": "#4b81e8"
}
},
"position": "bottom-right",
"content": {
"message": "This website uses cookies to ensure you get the best experience on our website.",
"dismiss": "Got it!",
"link": "Learn more"
}
});
});
</script>
</body>
</html>

0 comments on commit 17744b5

Please sign in to comment.