Hide ticket form if cloudron.io email is not yet verified

This commit is contained in:
Johannes Zellner
2021-08-25 18:36:46 +02:00
parent a1b4986060
commit 97dbf0ee7b
2 changed files with 11 additions and 2 deletions
+6 -1
View File
@@ -745,7 +745,9 @@
"sshCheckbox": "Allow support engineers to connect to this server via SSH",
"submitAction": "Submit",
"reportPlaceholder": "Describe your issue",
"emailPlaceholder": "If needed, provide an email address different from above to reach you"
"emailPlaceholder": "If needed, provide an email address different from above to reach you",
"emailVerifyAction": "Verify now",
"emailNotVerified": "Please verify the cloudron.io account email first to ensure we are able to contact you."
},
"remoteSupport": {
"title": "Remote Support",
@@ -1553,5 +1555,8 @@
"salutation": "Hi <%= user %>,",
"notice": "We noticed a login on your Cloudron account from a new device.",
"action": "If this was you, you can safely disregard this email. If this wasn't you, you should change your password immediately."
},
"supportConfig": {
"emailNotVerified": "Please verify the cloudron.io account email first to ensure we are able to contact you."
}
}
+5 -1
View File
@@ -15,7 +15,11 @@
<p ng-bind-html=" 'support.ticket.subscriptionRequiredDescription' | tr:{ supportViewLink: 'https://docs.cloudron.io/apps/?support_view', forumLink: 'https://forum.cloudron.io/' } "></p>
</div>
<div class="row" ng-show="config.features.support">
<div class="col-lg-12">
<div class="col-lg-12" ng-hide="!subscription || subscription.emailVerified">
<p class="text-bold">{{ 'support.ticket.emailNotVerified' | tr }}</p>
<a ng-href="{{ config.webServerOrigin + '/console.html#/userprofile?email=' + subscription.emailEncoded }}" target="_blank" class="btn btn-success">{{ 'support.ticket.emailVerifyAction' | tr }}</a>
</div>
<div class="col-lg-12" ng-show="subscription.emailVerified">
<div ng-bind-html="supportConfig.ticketFormBody | markdown2html"></div>
<form ng-show="supportConfig.submitTickets" name="feedbackForm" ng-submit="submitFeedback()">
<div class="form-group">