From 87a12c020f6b1c17bf90af91cc2afd18aec8b714 Mon Sep 17 00:00:00 2001 From: Hazelnoot Date: Thu, 10 Oct 2024 19:03:46 -0400 Subject: [PATCH] convert "suspend deliver" button into a toggle --- packages/frontend/src/pages/instance-info.vue | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/packages/frontend/src/pages/instance-info.vue b/packages/frontend/src/pages/instance-info.vue index 3dc2b2878c..9b73df557a 100644 --- a/packages/frontend/src/pages/instance-info.vue +++ b/packages/frontend/src/pages/instance-info.vue @@ -46,9 +46,8 @@ SPDX-License-Identifier: AGPL-3.0-only
{{ i18n.ts.deleteAllFiles }} {{ i18n.ts.severAllFollowRelations }} - {{ i18n.ts._delivery.stop }} - {{ i18n.ts._delivery.resume }}
+ {{ i18n.ts._delivery.stop }} {{ i18n.ts.blockedByBase }} {{ i18n.ts.blockThisInstance }} {{ i18n.ts.silencedByBase }} @@ -214,6 +213,11 @@ const isMediaSilenced = ref(false); const faviconUrl = ref(null); const moderationNote = ref(''); +const isSuspended = computed({ + get: () => suspensionState.value !== 'none', + set: value => value ? stopDelivery() : resumeDelivery(), +}); + const baseDomains = computed(() => { const domains: string[] = [];