support: fix issue where app error tickets cannot be opened

This commit is contained in:
Girish Ramakrishnan
2023-04-02 18:03:41 +02:00
parent 7b70b57b37
commit 8f1c1df48f
18 changed files with 69 additions and 144 deletions

View File

@@ -43,8 +43,6 @@
</select>
</div>
<p class="text-danger" ng-show="feedback.type === 'app_error' && appsById[feedback.appId] && appsById[feedback.appId].repository !== 'core'">{{ 'support.ticket.communityAppDisclaimer' | tr }}</p>
<div class="form-group" ng-class="{ 'has-error': (feedbackForm.subject.$dirty && feedbackForm.subject.$invalid) }">
<label>{{ 'support.ticket.topic' | tr }}</label>
<input type="text" class="form-control" name="subject" ng-model="feedback.subject" ng-maxlength="512" ng-minlength="1" required ng-disabled="!subscription.emailVerified">
@@ -62,7 +60,7 @@
<input type="checkbox" ng-model="feedback.enableSshSupport" ng-disabled="!subscription.emailVerified"> {{ 'support.ticket.sshCheckbox' | tr }}
</label>
</div>
<button type="submit" class="btn btn-primary pull-right" ng-disabled="!subscription.emailVerified || feedbackForm.$invalid || feedback.busy || (feedback.type === 'app_error' && appsById[feedback.appId] && appsById[feedback.appId].repository !== 'core')"><i class="fa fa-circle-notch fa-spin" ng-show="feedback.busy"></i> {{ 'support.ticket.submitAction' | tr }}</button>
<button type="submit" class="btn btn-primary pull-right" ng-disabled="!subscription.emailVerified || feedbackForm.$invalid || feedback.busy"><i class="fa fa-circle-notch fa-spin" ng-show="feedback.busy"></i> {{ 'support.ticket.submitAction' | tr }}</button>
<span ng-show="feedback.error" class="text-danger text-bold">{{feedback.error}}</span>
<span ng-show="feedback.result" class="text-success text-bold">{{feedback.result.message}}</span>
</form>