mirror of
https://github.com/simple-login/app.git
synced 2024-09-29 21:21:29 +02:00
Updated comments from PR
This commit is contained in:
parent
c9974d5321
commit
639d4412e1
@ -28,9 +28,9 @@ def show_support_dialog():
|
|||||||
def check_zendesk_response_status(response_code: int) -> bool:
|
def check_zendesk_response_status(response_code: int) -> bool:
|
||||||
if response_code != 201:
|
if response_code != 201:
|
||||||
if response_code in (401 or 422):
|
if response_code in (401 or 422):
|
||||||
LOG.debug("Could not authenticate")
|
LOG.error("Could not authenticate")
|
||||||
else:
|
else:
|
||||||
LOG.debug("Problem with the request. Status {}".format(response_code))
|
LOG.error("Problem with the request. Status {}".format(response_code))
|
||||||
return False
|
return False
|
||||||
return True
|
return True
|
||||||
|
|
||||||
|
@ -19,7 +19,7 @@
|
|||||||
{% block script %}
|
{% block script %}
|
||||||
<script>
|
<script>
|
||||||
new Vue({
|
new Vue({
|
||||||
el: '#aliasGroup',
|
el: '#alias-group',
|
||||||
data: {
|
data: {
|
||||||
ticket_email: '{{ ticket_email }}'
|
ticket_email: '{{ ticket_email }}'
|
||||||
},
|
},
|
||||||
@ -35,8 +35,8 @@
|
|||||||
});
|
});
|
||||||
|
|
||||||
$('.custom-file input').change(function (e) {
|
$('.custom-file input').change(function (e) {
|
||||||
var files = [];
|
let files = [];
|
||||||
for (var i = 0; i < $(this)[0].files.length; i++) {
|
for (let i = 0; i < $(this)[0].files.length; i++) {
|
||||||
files.push($(this)[0].files[i].name);
|
files.push($(this)[0].files[i].name);
|
||||||
}
|
}
|
||||||
$(this).next('.custom-file-label').html(files.join(', '));
|
$(this).next('.custom-file-label').html(files.join(', '));
|
||||||
@ -47,7 +47,6 @@
|
|||||||
{% block default_content %}
|
{% block default_content %}
|
||||||
|
|
||||||
<div class="col pb-3">
|
<div class="col pb-3">
|
||||||
<!-- Current plan -->
|
|
||||||
<div class="card">
|
<div class="card">
|
||||||
<div class="card-body">
|
<div class="card-body">
|
||||||
<div class="card-title mb-3">Report a problem</div>
|
<div class="card-title mb-3">Report a problem</div>
|
||||||
@ -76,7 +75,7 @@
|
|||||||
<div class="mt-2">
|
<div class="mt-2">
|
||||||
Conversations related to this ticket will be sent to this address. Feel free to use an alias here.
|
Conversations related to this ticket will be sent to this address. Feel free to use an alias here.
|
||||||
</div>
|
</div>
|
||||||
<div class="input-group mb-3" id="aliasGroup">
|
<div class="input-group mb-3" id="alias-group">
|
||||||
<input type="text" class="form-control" placeholder="Email" name="ticket_email" v-model='ticket_email' aria-label="Email to send responses to" aria-describedby="button-addon2">
|
<input type="text" class="form-control" placeholder="Email" name="ticket_email" v-model='ticket_email' aria-label="Email to send responses to" aria-describedby="button-addon2">
|
||||||
<div class="input-group-append">
|
<div class="input-group-append">
|
||||||
<button class="btn btn-outline-primary" type="button" @click="generateRandomAlias" id="button-addon2">Generate a random alias</button>
|
<button class="btn btn-outline-primary" type="button" @click="generateRandomAlias" id="button-addon2">Generate a random alias</button>
|
||||||
|
Loading…
Reference in New Issue
Block a user