From 1ef5fd1a0fc3bd9dff59d5fe4c95f9f4e0f81ea8 Mon Sep 17 00:00:00 2001 From: Johannes Zellner Date: Wed, 19 Feb 2020 14:19:35 +0100 Subject: [PATCH] Only show support ticket and remote support UI for paid plans --- src/views/support.html | 105 ++++++++++++++++++++++------------------- src/views/support.js | 4 +- 2 files changed, 58 insertions(+), 51 deletions(-) diff --git a/src/views/support.html b/src/views/support.html index 61cc9ecc7..bcf5e35a8 100644 --- a/src/views/support.html +++ b/src/views/support.html @@ -9,44 +9,48 @@
-
-
-
-
-
-
- - -
-
- - -
-
- - -
-
- - -
-
- (Subscription email is {{ subscription.email }}) - -
- - {{feedback.error}} - {{feedback.result.message}} -
-
-
+
+
+

Support tickets are only available in the paid plans.

+

You may find answers in our documentation or ask on the Forum.

+
+
+
+
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ (Subscription email is {{ subscription.email }}) + +
+ + {{feedback.error}} + {{feedback.result.message}} +
+
+
+
@@ -54,18 +58,21 @@
-
-
-
- Enable this option to allow support engineers to connect to this server via SSH. -
-
- Do not enable this option unless requested by the Cloudron support team. -
-
- -
-
+
+
+ This features is only available in the paid plans.
+
+
+ Enable this option to allow support engineers to connect to this server via SSH. +
+
+ Do not enable this option unless requested by the Cloudron support team. +
+
+ +
+
+
diff --git a/src/views/support.js b/src/views/support.js index 7c0100db8..b24463edd 100644 --- a/src/views/support.js +++ b/src/views/support.js @@ -71,6 +71,8 @@ angular.module('Application').controller('SupportController', ['$scope', '$locat } Client.onReady(function () { + getSubscription(); + Client.getSupportConfig(function (error, supportConfig) { if (error) return console.error(error); @@ -80,8 +82,6 @@ angular.module('Application').controller('SupportController', ['$scope', '$locat if (error) return console.error(error); $scope.sshSupportEnabled = enabled; - - getSubscription(); }); }); });