Add subscription setup link to paid branding feature

This commit is contained in:
Johannes Zellner
2020-06-18 12:16:16 +02:00
parent dbf6520860
commit c8278e7b24
3 changed files with 13 additions and 2 deletions

View File

@@ -89,6 +89,10 @@
</div>
<div class="card" ng-hide="config.features.branding">
Customizing the footer is only available in the premium plan.
<div class="row">
<div class="col-md-12">
Customizing the footer is only available in the paid plans. <a href="" class="pull-right" ng-click="openSubscriptionSetup()">Setup Subscription Now</a>
</div>
</div>
</div>
</div>

View File

@@ -9,6 +9,10 @@ angular.module('Application').controller('BrandingController', ['$scope', '$loca
$scope.user = Client.getUserInfo();
$scope.config = Client.getConfig();
$scope.openSubscriptionSetup = function () {
Client.openSubscriptionSetup($scope.$parent.subscription);
};
$scope.avatarChange = {
avatar: null, // { file, data, url }