Add explicit billing issue ticket type
This commit is contained in:
@@ -932,7 +932,8 @@
|
||||
"reportPlaceholder": "Describe your issue",
|
||||
"emailPlaceholder": "If needed, provide an email address different from above to reach you",
|
||||
"emailVerifyAction": "Verify now",
|
||||
"emailNotVerified": "Your cloudron.io account email {{ email }} is not verified. Please verify it to open support tickets."
|
||||
"emailNotVerified": "Your cloudron.io account email {{ email }} is not verified. Please verify it to open support tickets.",
|
||||
"typeBilling": "Billing Issue"
|
||||
},
|
||||
"remoteSupport": {
|
||||
"title": "Remote Support",
|
||||
|
||||
@@ -507,7 +507,8 @@
|
||||
},
|
||||
"changeBackgroundImage": {
|
||||
"title": "Stel achtergrond afbeelding in"
|
||||
}
|
||||
},
|
||||
"enable2FANotAvailable": "Niet beschikbaar voor gebruikers met een externe authenticatie bron"
|
||||
},
|
||||
"backups": {
|
||||
"title": "Backups",
|
||||
|
||||
@@ -33,6 +33,7 @@
|
||||
<select class="form-control" name="type" style="width: 50%;" ng-model="feedback.type" required ng-disabled="!subscription.emailVerified">
|
||||
<option value="app_error">{{ 'support.ticket.typeApp' | tr }}</option>
|
||||
<option value="ticket">{{ 'support.ticket.typeBug' | tr }}</option>
|
||||
<option value="billing">{{ 'support.ticket.typeBilling' | tr }}</option>
|
||||
<option value="email_error">{{ 'support.ticket.typeEmail' | tr }}</option>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
@@ -41,7 +41,7 @@ async function canCreateTicket(req, res, next) {
|
||||
async function createTicket(req, res, next) {
|
||||
assert.strictEqual(typeof req.user, 'object');
|
||||
|
||||
const VALID_TYPES = [ 'feedback', 'ticket', 'app_missing', 'app_error', 'upgrade_request', 'email_error' ];
|
||||
const VALID_TYPES = [ 'feedback', 'ticket', 'app_missing', 'app_error', 'upgrade_request', 'email_error', 'billing' ];
|
||||
|
||||
if (typeof req.body.type !== 'string' || !req.body.type) return next(new HttpError(400, 'type must be string'));
|
||||
if (VALID_TYPES.indexOf(req.body.type) === -1) return next(new HttpError(400, 'unknown type'));
|
||||
|
||||
Reference in New Issue
Block a user