Fix problem with whitespaces in copied token

This commit is contained in:
Paweł Jastrzębski 2021-11-17 11:46:35 +01:00
parent e2d438134a
commit 8302aedaa7
2 changed files with 2 additions and 6 deletions

View File

@ -8,9 +8,7 @@
<div> <div>
<p class="label">Token</p> <p class="label">Token</p>
<div class="flex justify-between"> <div class="flex justify-between">
<span class='chip ~info !normal'> <span class='chip ~info !normal'>{{request.user.api_token}}</span>
{{request.user.api_token}}
</span>
<a class="href" href="{% url 'dashboard:api_token_refresh' %}"> <a class="href" href="{% url 'dashboard:api_token_refresh' %}">
<button type="submit" class="button ~warning !high">Refresh token</button> <button type="submit" class="button ~warning !high">Refresh token</button>
</a> </a>

View File

@ -33,9 +33,7 @@
<hr class="sep h-4"> <hr class="sep h-4">
<div> <div>
<p class="label">API Token</p> <p class="label">API Token</p>
<span class='chip ~info !normal'> <span class='chip ~info !normal'>{{request.user.api_token}}</span>
{{request.user.api_token}}
</span>
</div> </div>
</div> </div>
{% endblock %} {% endblock %}