fix: event value saving

fix: post draft event value problem
feat: show warning when instance is private
This commit is contained in:
아르페 2023-12-15 09:36:19 +09:00
parent e7a572460d
commit 4dbbf2d8c7
No known key found for this signature in database
GPG key ID: B1EFBBF5C93FF78F
6 changed files with 8 additions and 3 deletions

View file

@ -1222,6 +1222,7 @@ signupIsNotAvailable: "For now, you can't sign up on this instance."
thisInstanceIsPrivate: "This instance is in private mode."
makeInstancePrivate: "Make instance private"
makeInstancePrivateDescription: "By turning on, all visitors can't sign up (even if they invited) on this instance and can't view timeline, trends, highlights, etc."
instanceIsPrivate: "Instance is private now. By keep enabling this, no visitors can view this instance."
emailToReceiveAbuseReport: "Email address to receive notification of the report"
emailToReceiveAbuseReportCaption: "Specify the email address to receive notification of the report. If this field is left blank, the mail server's email address will be used."
dialog: "Dialog"

View file

@ -1228,6 +1228,7 @@ signupIsNotAvailable: "現在、このインスタンスに新規加入するこ
thisInstanceIsPrivate: "現在、このインスタンスは非公開に設定されています。"
makeInstancePrivate: "インスタンスを非公開で表示"
makeInstancePrivateDescription: "有効にすると、招待による新規加入を含むすべての加入が制限され、非ログインユーザーはインスタンス内のページを一切見ることができなくなります。 また、認証されていないすべてのAPIリクエストを拒否します。"
instanceIsPrivate: "インスタンスが現在非公開に設定されています。解除しないと、非ログインユーザーはアクセスできなくなります。"
emailToReceiveAbuseReport: "通報通知を受け取るためのメールアドレス"
emailToReceiveAbuseReportCaption: "通報通知を受け取るためのメールアドレスを指定します。ここの入力欄を空にするとメールサーバーのメールアドレスが使用されます。"
dialog: "ダイアログ"

View file

@ -1225,6 +1225,7 @@ signupIsNotAvailable: "현재 이 인스턴스는 신규 사용자를 받고 있
thisInstanceIsPrivate: "이 인스턴스는 관리자에 의해 비공개로 설정되었습니다."
makeInstancePrivate: "인스턴스를 비공개로 만들기"
makeInstancePrivateDescription: "활성화하면 초대를 통한 신규 가입을 포함해 모든 가입이 제한되며, 비로그인 사용자는 인스턴스 내 페이지들을 일체 볼 수 없게 됩니다. 또한, 인증되지 않은 모든 API 요청을 거부하게 됩니다."
instanceIsPrivate: "인스턴스가 현재 비공개로 설정되어 있습니다. 해제하지 않으면 비로그인 사용자는 접근할 수 없게 됩니다."
emailToReceiveAbuseReport: "신고 알림을 받을 수 있는 이메일 주소"
emailToReceiveAbuseReportCaption: "신고 알림을 받을 이메일 주소를 지정해 주세요. 이곳의 입력란을 비워두면 메일 서버의 이메일 주소가 사용돼요."
dialog: "다이얼로그"

View file

@ -721,7 +721,7 @@ function saveDraft() {
localOnly: localOnly.value,
files: files.value,
poll: poll.value,
event: event,
event: event.value,
},
};

View file

@ -742,7 +742,7 @@ function saveDraft() {
localOnly: localOnly.value,
files: files.value,
poll: poll.value,
event: event,
event: event.value,
},
};

View file

@ -17,6 +17,7 @@ SPDX-License-Identifier: AGPL-3.0-only
<MkInfo v-if="noBotProtection" warn class="info">{{ i18n.ts.noBotProtectionWarning }} <MkA to="/admin/security" class="_link">{{ i18n.ts.configure }}</MkA></MkInfo>
<MkInfo v-if="noEmailServer" warn class="info">{{ i18n.ts.noEmailServerWarning }} <MkA to="/admin/email-settings" class="_link">{{ i18n.ts.configure }}</MkA></MkInfo>
<MkInfo v-if="updateAvailable" warn class="info">{{ i18n.ts.newVersionOfClientAvailable }} <MkA to="/admin/update" class="_link">{{ i18n.ts.configure }}</MkA></MkInfo>
<MkInfo v-if="instanceIsPrivate" warn class="info">{{ i18n.ts.instanceIsPrivate }} <MkA to="/admin/moderation" class="_link">{{ i18n.ts.check }}</MkA></MkInfo>
<MkSuperMenu :def="menuDef" :grid="narrow"></MkSuperMenu>
</div>
@ -61,6 +62,7 @@ const pageProps = ref({});
let noMaintainerInformation = isEmpty(instance.maintainerName) || isEmpty(instance.maintainerEmail);
let noBotProtection = !instance.disableRegistration && !instance.enableHcaptcha && !instance.enableRecaptcha && !instance.enableTurnstile;
let noEmailServer = !instance.enableEmail;
let instanceIsPrivate = instance.privateInstance;
const thereIsUnresolvedAbuseReport = ref(false);
const currentPage = computed(() => router.currentRef.value.child);
const updateAvailable = ref(false);
@ -162,7 +164,7 @@ const menuDef = computed(() => [{
}, {
icon: 'ti ti-exclamation-circle',
text: i18n.ts.abuseReports,
indicated: thereIsUnresolvedAbuseReport,
indicated: thereIsUnresolvedAbuseReport.value,
to: '/admin/abuses',
active: currentPage.value?.route.name === 'abuses',
}, {