enhance(frontend): リアクションの受け入れ設定にキャプションを追加 (#16807)
* enhance(frontend): リアクションの受け入れ設定にキャプションを追加 * Update Changelog * CHANGELOG.mdを修正 * CHANGELOG.mdのコンフリクトを解消し、再度変更内容を記載 * 条件分岐をswitch文に変更 * chore: trigger CI re-run
This commit is contained in:
parent
2f3421645a
commit
9f810d701d
|
|
@ -4,12 +4,11 @@
|
||||||
-
|
-
|
||||||
|
|
||||||
### Client
|
### Client
|
||||||
-
|
- Enhance: リアクションの受け入れ設定にキャプションを追加 #15921
|
||||||
|
|
||||||
### Server
|
### Server
|
||||||
-
|
-
|
||||||
|
|
||||||
|
|
||||||
## 2025.11.0
|
## 2025.11.0
|
||||||
|
|
||||||
### General
|
### General
|
||||||
|
|
|
||||||
|
|
@ -608,11 +608,30 @@ async function toggleReactionAcceptance() {
|
||||||
//#region その他の設定メニューpopup
|
//#region その他の設定メニューpopup
|
||||||
function showOtherSettings() {
|
function showOtherSettings() {
|
||||||
let reactionAcceptanceIcon = 'ti ti-icons';
|
let reactionAcceptanceIcon = 'ti ti-icons';
|
||||||
|
let reactionAcceptanceCaption = '';
|
||||||
|
|
||||||
if (reactionAcceptance.value === 'likeOnly') {
|
switch (reactionAcceptance.value) {
|
||||||
|
case 'likeOnly':
|
||||||
reactionAcceptanceIcon = 'ti ti-heart _love';
|
reactionAcceptanceIcon = 'ti ti-heart _love';
|
||||||
} else if (reactionAcceptance.value === 'likeOnlyForRemote') {
|
reactionAcceptanceCaption = i18n.ts.likeOnly;
|
||||||
|
break;
|
||||||
|
|
||||||
|
case 'likeOnlyForRemote':
|
||||||
reactionAcceptanceIcon = 'ti ti-heart-plus';
|
reactionAcceptanceIcon = 'ti ti-heart-plus';
|
||||||
|
reactionAcceptanceCaption = i18n.ts.likeOnlyForRemote;
|
||||||
|
break;
|
||||||
|
|
||||||
|
case 'nonSensitiveOnly':
|
||||||
|
reactionAcceptanceCaption = i18n.ts.nonSensitiveOnly;
|
||||||
|
break;
|
||||||
|
|
||||||
|
case 'nonSensitiveOnlyForLocalLikeOnlyForRemote':
|
||||||
|
reactionAcceptanceCaption = i18n.ts.nonSensitiveOnlyForLocalLikeOnlyForRemote;
|
||||||
|
break;
|
||||||
|
|
||||||
|
default:
|
||||||
|
reactionAcceptanceCaption = i18n.ts.all;
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
const menuItems = [{
|
const menuItems = [{
|
||||||
|
|
@ -624,6 +643,7 @@ function showOtherSettings() {
|
||||||
}, { type: 'divider' }, {
|
}, { type: 'divider' }, {
|
||||||
icon: reactionAcceptanceIcon,
|
icon: reactionAcceptanceIcon,
|
||||||
text: i18n.ts.reactionAcceptance,
|
text: i18n.ts.reactionAcceptance,
|
||||||
|
caption: reactionAcceptanceCaption,
|
||||||
action: () => {
|
action: () => {
|
||||||
toggleReactionAcceptance();
|
toggleReactionAcceptance();
|
||||||
},
|
},
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue