new user: disable kobo token on new user page

kobo token generator function is related to a user id, which is not
present on new user page.
Disable the Kobo token part when creating a new user.
This commit is contained in:
Simon Latapie 2020-01-25 22:41:55 +01:00
parent cd9bb56db5
commit 69fa7d0091
1 changed files with 1 additions and 1 deletions

View File

@ -55,7 +55,7 @@
{% endfor %}
</div>
{% endif %}
{% if feature_support['kobo'] %}
{% if feature_support['kobo'] and not new_user %}
<label>{{ _('Kobo Sync Token')}}</label>
<div class="form-group col">
<a class="btn btn-default" id="config_create_kobo_token" data-toggle="modal" data-target="#modal_kobo_token" data-remote="false" href="{{ url_for('kobo_auth.generate_auth_token', user_id=content.id) }}">{{_('Create/View')}}</a>