Skip to content

Commit

Permalink
fix(frontend): 버블 타임라인이 비활성화 상태면 버블 타임라인의 호스트 목록을 수정할 수 없음
Browse files Browse the repository at this point in the history
  • Loading branch information
noridev committed Dec 3, 2024
1 parent de7388c commit d4ab680
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions packages/frontend/src/pages/admin/moderation.vue
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ SPDX-License-Identifier: AGPL-3.0-only
<template #label>{{ i18n.ts.bubbleTimeline }}</template>

<div class="_gaps">
<MkTextarea v-if="bubbleTimelineEnabled" v-model="bubbleTimeline">
<MkTextarea v-model="bubbleTimeline">
<template #caption>{{ i18n.ts.bubbleInstancesDescription }}</template>
</MkTextarea>
<MkButton primary @click="save_bubbleTimeline">{{ i18n.ts.save }}</MkButton>
Expand Down Expand Up @@ -196,7 +196,6 @@ const blockedHosts = ref<string>('');
const silencedHosts = ref<string>('');
const mediaSilencedHosts = ref<string>('');
const trustedLinkUrlPatterns = ref<string>('');
const bubbleTimelineEnabled = ref<boolean>(false);
const bubbleTimeline = ref<string>('');

async function init() {
Expand All @@ -214,7 +213,6 @@ async function init() {
silencedHosts.value = meta.silencedHosts?.join('\n') ?? '';
mediaSilencedHosts.value = meta.mediaSilencedHosts.join('\n');
trustedLinkUrlPatterns.value = meta.trustedLinkUrlPatterns.join('\n');
bubbleTimelineEnabled.value = meta.policies.btlAvailable;
bubbleTimeline.value = meta.bubbleInstances.join('\n');
}

Expand Down

0 comments on commit d4ab680

Please sign in to comment.