diff --git a/app/portainer/__module.js b/app/portainer/__module.js index e2ad352b2..b94c4ce06 100644 --- a/app/portainer/__module.js +++ b/app/portainer/__module.js @@ -348,31 +348,6 @@ angular.module('portainer.app', ['portainer.oauth']).config([ }, }; - var support = { - name: 'portainer.support', - url: '/support', - views: { - 'content@': { - templateUrl: './views/support/support.html', - controller: 'SupportController', - }, - }, - params: { - product: {}, - }, - }; - - var supportProduct = { - name: 'portainer.support.product', - url: '/product', - views: { - 'content@': { - templateUrl: './views/support/product/product.html', - controller: 'SupportProductController', - }, - }, - }; - var tags = { name: 'portainer.tags', url: '/tags', @@ -454,8 +429,6 @@ angular.module('portainer.app', ['portainer.oauth']).config([ $stateRegistryProvider.register(registryCreation); $stateRegistryProvider.register(settings); $stateRegistryProvider.register(settingsAuthentication); - $stateRegistryProvider.register(support); - $stateRegistryProvider.register(supportProduct); $stateRegistryProvider.register(tags); $stateRegistryProvider.register(users); $stateRegistryProvider.register(user); diff --git a/app/portainer/components/header-title.js b/app/portainer/components/header-title.js index 96ca73054..569038524 100644 --- a/app/portainer/components/header-title.js +++ b/app/portainer/components/header-title.js @@ -11,7 +11,7 @@ angular.module('portainer.app').directive('rdHeaderTitle', [ }, transclude: true, template: - '
{{titleText}} {{username}} Portainer support
', + '
{{titleText}} {{username}}
', restrict: 'E', }; return directive; diff --git a/app/portainer/views/support/product/product.html b/app/portainer/views/support/product/product.html deleted file mode 100644 index 10969560e..000000000 --- a/app/portainer/views/support/product/product.html +++ /dev/null @@ -1,72 +0,0 @@ - - - Portainer support > {{ product.Name }} - - -
-
- - -
-
-
-
- {{ product.Name }} -
- - -
- -
-
- {{ product.ShortDescription }} -
-
-
- -
-
-
- {{ product.Price }} -
- -
- {{ product.PriceDescription }} -
- -
- -
- -
-
- - -
-
-
-
-
-
-
- -
-
- - -
- - Description - -
-
- {{ product.Description }} -
-
-
-
-
diff --git a/app/portainer/views/support/product/productController.js b/app/portainer/views/support/product/productController.js deleted file mode 100644 index 67f39dcb0..000000000 --- a/app/portainer/views/support/product/productController.js +++ /dev/null @@ -1,44 +0,0 @@ -angular.module('portainer.app').controller('SupportProductController', [ - '$scope', - '$transition$', - function ($scope, $transition$) { - $scope.formValues = { - hostCount: 0, - }; - - $scope.state = { - minHosts: 0, - placeholder: 0, - supportType: '', - }; - - $scope.isBuyButtonEnabled = function () { - return !$scope.formValues.hostCount || $scope.formValues.hostCount < $scope.state.minHosts; - }; - - function initView() { - $scope.product = $transition$.params().product; - - if ($scope.product.Id == 1) { - $scope.formValues.hostCount = 1; - $scope.state.minHosts = 1; - $scope.state.placeholder = 1; - $scope.state.supportType = 'Person'; - } - if ($scope.product.Id == 2 || $scope.product.Id == 3) { - $scope.formValues.hostCount = 4; - $scope.state.minHosts = 4; - $scope.state.placeholder = 4; - $scope.state.supportType = 'Host'; - } - if ($scope.product.Id == 4 || $scope.product.Id == 5) { - $scope.formValues.hostCount = 10; - $scope.state.minHosts = 10; - $scope.state.placeholder = 10; - $scope.state.supportType = 'Host'; - } - } - - initView(); - }, -]); diff --git a/app/portainer/views/support/support.html b/app/portainer/views/support/support.html deleted file mode 100644 index 3c9f7d73a..000000000 --- a/app/portainer/views/support/support.html +++ /dev/null @@ -1,12 +0,0 @@ - - - - Commercial support options - - - -
-
- -
-
diff --git a/app/portainer/views/support/supportController.js b/app/portainer/views/support/supportController.js deleted file mode 100644 index 2d435a4e3..000000000 --- a/app/portainer/views/support/supportController.js +++ /dev/null @@ -1,23 +0,0 @@ -angular.module('portainer.app').controller('SupportController', [ - '$scope', - '$state', - 'SupportService', - 'Notifications', - function ($scope, $state, SupportService, Notifications) { - $scope.goToProductView = function (product) { - $state.go('portainer.support.product', { product: product }); - }; - - function initView() { - SupportService.supportProducts() - .then(function success(data) { - $scope.products = data; - }) - .catch(function error(err) { - Notifications.error('Failure', err, 'Unable to fetch support options'); - }); - } - - initView(); - }, -]);