@@ -299,6 +299,21 @@ <h2 class="card-title text-lg">Discord Integration</h2>
299299 {% endif %}
300300 </ div >
301301
302+ < div class ="mt-3 flex gap-2 ">
303+ < a href ="{{ url_for('discord_oauth.connect', org_slug=organization.slug) }} " class ="btn btn-outline btn-sm gap-2 ">
304+ {{ icon('refresh-cw', 'w-4 h-4') }}
305+ Reauthorize
306+ </ a >
307+ < form method ="POST " action ="{{ url_for('discord_oauth.disconnect', org_slug=organization.slug) }} ">
308+ < input type ="hidden " name ="csrf_token " value ="{{ csrf_token() }} ">
309+ < button type ="submit " class ="btn btn-error btn-outline btn-sm gap-2 "
310+ onclick ="return confirm('Disconnect Discord? Alert notifications to this server will stop.') ">
311+ {{ icon('trash-2', 'w-4 h-4') }}
312+ Disconnect
313+ </ button >
314+ </ form >
315+ </ div >
316+
302317 < form method ="POST " action ="{{ url_for('discord_oauth.update_channel', org_slug=organization.slug) }} " class ="mt-3 " id ="discord-channel-form ">
303318 < input type ="hidden " name ="csrf_token " value ="{{ csrf_token() }} ">
304319 < div class ="flex items-end gap-2 ">
@@ -344,17 +359,6 @@ <h2 class="card-title text-lg">Discord Integration</h2>
344359 } ) ;
345360 } ) ( ) ;
346361 </ script >
347-
348- < div class ="mt-4 flex gap-2 ">
349- < form method ="POST " action ="{{ url_for('discord_oauth.disconnect', org_slug=organization.slug) }} ">
350- < input type ="hidden " name ="csrf_token " value ="{{ csrf_token() }} ">
351- < button type ="submit " class ="btn btn-error btn-outline btn-sm gap-2 "
352- onclick ="return confirm('Disconnect Discord? Alert notifications to this server will stop.') ">
353- {{ icon('trash-2', 'w-4 h-4') }}
354- Disconnect
355- </ button >
356- </ form >
357- </ div >
358362 {% else %}
359363 < p class ="text-sm opacity-80 mb-4 "> Connect a Discord server to receive alert notifications in your channels.</ p >
360364 < a href ="{{ url_for('discord_oauth.connect', org_slug=organization.slug) }} " class ="btn btn-primary btn-sm gap-2 ">
0 commit comments