Skip to content

Commit

Permalink
check if freshtoken exists at edit user
Browse files Browse the repository at this point in the history
  • Loading branch information
Aaronnz303 committed Feb 24, 2025
1 parent 7149272 commit 916a152
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion muesli/web/templates/Fragments/api_keys_table.pt
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
</form>
</td>
<td>
<button role="button" class="btn btn-secondary btn-sm" tal:condition="freshtoken and (key.id == max([e.id for e in keys]))" onClick="copyToClipboard('${freshtoken}')">Kopiere JWT-Token</button>
<button role="button" class="btn btn-secondary btn-sm" tal:condition="'freshtoken' in vars() and freshtoken and (key.id == max([e.id for e in keys]))" onClick="copyToClipboard('${freshtoken}')">Kopiere JWT-Token</button>
</td>
</tr>
</tbody>
Expand Down
7 changes: 7 additions & 0 deletions muesli4.code-workspace
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"folders": [
{
"path": "."
}
]
}

0 comments on commit 916a152

Please sign in to comment.