(null);
const isReconnecting = ref(false);
@@ -927,6 +944,20 @@ const cleanup = () => {
DOMPurify.removeHook("afterSanitizeAttributes");
};
+async function dismissNotice(noticeId: number) {
+ await usePyroFetch(`servers/${serverId}/notices/${noticeId}/dismiss`, {
+ method: "POST",
+ }).catch((err) => {
+ app.$notify({
+ group: "main",
+ title: "Error dismissing notice",
+ text: err,
+ type: "error",
+ });
+ });
+ await server.refresh(["general"]);
+}
+
onMounted(() => {
isMounted.value = true;
if (server.general?.status === "suspended") {
diff --git a/packages/ui/src/components/base/Accordion.vue b/packages/ui/src/components/base/Accordion.vue
index 333e2564b..57a2debd4 100644
--- a/packages/ui/src/components/base/Accordion.vue
+++ b/packages/ui/src/components/base/Accordion.vue
@@ -2,14 +2,14 @@