Compare commits
2 Commits
9d992eb882
...
53aa5ebc55
Author | SHA1 | Date | |
---|---|---|---|
53aa5ebc55 | |||
5a85f1d83a |
@ -0,0 +1,19 @@
|
|||||||
|
let _reminderErrors = [];
|
||||||
|
|
||||||
|
const reminderErrors = () => {
|
||||||
|
return _reminderErrors;
|
||||||
|
}
|
||||||
|
|
||||||
|
const guildId = () => {
|
||||||
|
let selected: HTMLElement = document.querySelector(".guildList a.is-active");
|
||||||
|
return selected.dataset["guild"];
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
function loadErrors() {
|
||||||
|
fetch(`/dashboard/api/guild/${guildId()}/errors`).then(response => response.json())
|
||||||
|
}
|
||||||
|
|
||||||
|
document.addEventListener('DOMContentLoaded', () => {
|
||||||
|
|
||||||
|
})
|
@ -335,34 +335,14 @@
|
|||||||
<section id="guild" class="is-hidden">
|
<section id="guild" class="is-hidden">
|
||||||
{% include "reminder_dashboard/reminder_dashboard" %}
|
{% include "reminder_dashboard/reminder_dashboard" %}
|
||||||
</section>
|
</section>
|
||||||
<section id="guild-error" class="is-hidden hero is-fullheight">
|
<section id="reminder-errors" class="is-hidden">
|
||||||
<div class="hero-body">
|
{% include "reminder_dashboard/reminder_errors" %}
|
||||||
<div class="container has-text-centered">
|
|
||||||
<p class="title">
|
|
||||||
We couldn't get this server's data
|
|
||||||
</p>
|
|
||||||
<p class="subtitle">
|
|
||||||
Please check Reminder Bot is in the server, and has correct permissions.
|
|
||||||
</p>
|
|
||||||
<a class="button is-size-4 is-rounded is-success" href="https://invite.reminder-bot.com">
|
|
||||||
<p class="is-size-4">
|
|
||||||
<span>Add to Server</span> <span class="icon"><i class="fas fa-chevron-right"></i></span>
|
|
||||||
</p>
|
|
||||||
</a>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</section>
|
</section>
|
||||||
<section id="user-error" class="is-hidden hero is-fullheight">
|
<section id="guild-error" class="is-hidden">
|
||||||
<div class="hero-body">
|
{% include "reminder_dashboard/guild_error" %}
|
||||||
<div class="container has-text-centered">
|
</section>
|
||||||
<p class="title">
|
<section id="user-error" class="is-hidden">
|
||||||
You do not have permissions for this server
|
{% include "reminder_dashboard/user_error" %}
|
||||||
</p>
|
|
||||||
<p class="subtitle">
|
|
||||||
Ask an admin to grant you the "Manage Messages" permission.
|
|
||||||
</p>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</section>
|
</section>
|
||||||
</div>
|
</div>
|
||||||
<!-- /main content -->
|
<!-- /main content -->
|
||||||
|
@ -0,0 +1,17 @@
|
|||||||
|
<div class="hero is-fullheight">
|
||||||
|
<div class="hero-body">
|
||||||
|
<div class="container has-text-centered">
|
||||||
|
<p class="title">
|
||||||
|
We couldn't get this server's data
|
||||||
|
</p>
|
||||||
|
<p class="subtitle">
|
||||||
|
Please check Reminder Bot is in the server, and has correct permissions.
|
||||||
|
</p>
|
||||||
|
<a class="button is-size-4 is-rounded is-success" href="https://invite.reminder-bot.com">
|
||||||
|
<p class="is-size-4">
|
||||||
|
<span>Add to Server</span> <span class="icon"><i class="fas fa-chevron-right"></i></span>
|
||||||
|
</p>
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
@ -0,0 +1,5 @@
|
|||||||
|
<div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<script src="/static/js/reminder_errors.js"></script>
|
@ -0,0 +1,12 @@
|
|||||||
|
<div class="hero is-fullheight">
|
||||||
|
<div class="hero-body">
|
||||||
|
<div class="container has-text-centered">
|
||||||
|
<p class="title">
|
||||||
|
You do not have permissions for this server
|
||||||
|
</p>
|
||||||
|
<p class="subtitle">
|
||||||
|
Ask an admin to grant you the "Manage Messages" permission.
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
Loading…
Reference in New Issue
Block a user