enhance(client): Renoteする前に確認ポップアップを表示

This commit is contained in:
NoriDev 2023-06-21 02:30:57 +09:00
parent 6268e1035f
commit d54e28d286
7 changed files with 19 additions and 2 deletions

View file

@ -27,6 +27,7 @@
전체 변경 사항을 확인하려면, [CHANGELOG.md#13xx](CHANGELOG.md#13xx) 문서를 참고하십시오.
### Client
- 리노트 전 확인 팝업을 띄움
- Fix: 그룹 초대 알림 아이콘이 잘못 표시되는 문제
- Fix: 노트 디자인이 올바르지 않게 표시되는 문제
- Fix: 프로필 아이콘이 투명일 때 노트 답글선이 비치는 문제

View file

@ -1,5 +1,6 @@
---
_lang_: "English"
renoteConfirm: "Do you want to Renote?"
posted: "Note are now published."
translateNote: "Translate Note"
showTranslateButtonInNote: "Display translate button in note body"

1
locales/index.d.ts vendored
View file

@ -3,6 +3,7 @@
// Do not edit this file directly.
export interface Locale {
"_lang_": string;
"renoteConfirm": string;
"posted": string;
"translateNote": string;
"showTranslateButtonInNote": string;

View file

@ -1,5 +1,6 @@
_lang_: "日本語"
renoteConfirm: "Renoteしますか"
posted: "ノートを公開しました。"
translateNote: "ノートを翻訳する"
showTranslateButtonInNote: "ノート本文に翻訳ボタンを表示"

View file

@ -1,5 +1,6 @@
---
_lang_: "한국어"
renoteConfirm: "리노트 할까요?"
posted: "노트를 게시했어요!"
translateNote: "노트 번역하기"
showTranslateButtonInNote: "노트 본문에 번역 버튼 표시"

View file

@ -302,10 +302,16 @@ useTooltip(renoteButton, async (showing) => {
}, {}, 'closed');
});
function renote() {
async function renote() {
pleaseLogin();
showMovedDialog();
const { canceled } = await os.confirm({
type: 'info',
text: i18n.ts.renoteConfirm,
});
if (canceled) return;
if (appearNote.channel) {
const el = renoteButton.value as HTMLElement | null | undefined;
if (el) {

View file

@ -284,10 +284,16 @@ useTooltip(renoteButton, async (showing) => {
}, {}, 'closed');
});
function renote() {
async function renote() {
pleaseLogin();
showMovedDialog();
const { canceled } = await os.confirm({
type: 'info',
text: i18n.ts.renoteConfirm,
});
if (canceled) return;
if (appearNote.channel) {
const el = renoteButton.value as HTMLElement | null | undefined;
if (el) {