jormungandr-patches/patches/remove-maintainer-info-nag.patch

58 lines
2 KiB
Diff
Raw Normal View History

2024-06-30 21:36:55 -06:00
From d74b6c934756deff8d182777af6c2bbb44b4f6a4 Mon Sep 17 00:00:00 2001
From: limepotato <bm01@limepot.xyz>
Date: Tue, 25 Jun 2024 04:10:47 -0600
Subject: [PATCH] remove maintainer info nag
---
packages/client/src/pages/admin/index.vue | 8 --------
packages/client/src/ui/_common_/navbar.vue | 3 ---
2 files changed, 11 deletions(-)
diff --git a/packages/client/src/pages/admin/index.vue b/packages/client/src/pages/admin/index.vue
index 5b6ebfedc..bfd91d53d 100644
--- a/packages/client/src/pages/admin/index.vue
+++ b/packages/client/src/pages/admin/index.vue
@@ -20,12 +20,6 @@
i18n.ts.check
}}</MkA></MkInfo
>
- <MkInfo v-if="noMaintainerInformation" warn class="info"
- >{{ i18n.ts.noMaintainerInformationWarning }}
- <MkA to="/admin/settings" class="_link">{{
- i18n.ts.configure
- }}</MkA></MkInfo
- >
<MkInfo v-if="noBotProtection" warn class="info"
>{{ i18n.ts.noBotProtectionWarning }}
<MkA to="/admin/security" class="_link">{{
@@ -101,8 +95,6 @@ let childInfo = $ref(null);
let narrow = $ref(false);
let view = $ref(null);
let pageProps = $ref({});
-let noMaintainerInformation =
- isEmpty(instance.maintainerName) || isEmpty(instance.maintainerEmail);
let noBotProtection =
!instance.disableRegistration &&
!instance.enableHcaptcha &&
diff --git a/packages/client/src/ui/_common_/navbar.vue b/packages/client/src/ui/_common_/navbar.vue
index b439ea7f1..e0025ca2f 100644
--- a/packages/client/src/ui/_common_/navbar.vue
+++ b/packages/client/src/ui/_common_/navbar.vue
@@ -82,7 +82,6 @@
<span
v-if="
thereIsUnresolvedAbuseReport ||
- noMaintainerInformation ||
noBotProtection ||
updateAvailable
"
@@ -177,8 +176,6 @@ watch(defaultStore.reactiveState.menuDisplay, () => {
calcViewState();
});
-let noMaintainerInformation =
- isEmpty(instance.maintainerName) || isEmpty(instance.maintainerEmail);
let noBotProtection =
!instance.disableRegistration &&
!instance.enableHcaptcha &&