From a814395127aa1b4ea643fb40235e3e58c747b77f Mon Sep 17 00:00:00 2001
From: syuilo <4439005+syuilo@users.noreply.github.com>
Date: Sun, 16 Mar 2025 17:21:20 +0900
Subject: Revert "enhance(frontend): 投稿フォームの設定メニューを改良 (#14804)"
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
This reverts commit ce6b2448ced1101a4f0f8eeeb0d48378d40f696a.
---
packages/frontend/src/components/MkPostForm.vue | 53 ++++---------------------
1 file changed, 7 insertions(+), 46 deletions(-)
(limited to 'packages/frontend/src/components/MkPostForm.vue')
diff --git a/packages/frontend/src/components/MkPostForm.vue b/packages/frontend/src/components/MkPostForm.vue
index e31c33149f..d57300f647 100644
--- a/packages/frontend/src/components/MkPostForm.vue
+++ b/packages/frontend/src/components/MkPostForm.vue
@@ -20,7 +20,7 @@ SPDX-License-Identifier: AGPL-3.0-only
-
-
+
-
+
+
+
+
+
@@ -107,7 +111,6 @@ import { toASCII } from 'punycode.js';
import { host, url } from '@@/js/config.js';
import type { ShallowRef } from 'vue';
import type { PostFormProps } from '@/types/post-form.js';
-import type { MenuItem } from '@/types/menu.js';
import type { PollEditorModelValue } from '@/components/MkPollEditor.vue';
import MkNotePreview from '@/components/MkNotePreview.vue';
import XPostFormAttaches from '@/components/MkPostFormAttaches.vue';
@@ -168,7 +171,6 @@ const textareaEl = shallowRef(null);
const cwInputEl = shallowRef(null);
const hashtagsInputEl = shallowRef(null);
const visibilityButton = shallowRef();
-const otherSettingsButton = shallowRef();
const posting = ref(false);
const posted = ref(false);
@@ -554,47 +556,6 @@ async function toggleReactionAcceptance() {
reactionAcceptance.value = select.result;
}
-//#region その他の設定メニューpopup
-function showOtherSettings() {
- let reactionAcceptanceIcon = 'ti ti-icons';
-
- if (reactionAcceptance.value === 'likeOnly') {
- reactionAcceptanceIcon = 'ti ti-heart _love';
- } else if (reactionAcceptance.value === 'likeOnlyForRemote') {
- reactionAcceptanceIcon = 'ti ti-heart-plus';
- }
-
- const menuDef = [{
- icon: reactionAcceptanceIcon,
- text: i18n.ts.reactionAcceptance,
- action: () => {
- toggleReactionAcceptance();
- },
- }, { type: 'divider' }, {
- icon: 'ti ti-trash',
- text: i18n.ts.reset,
- danger: true,
- action: async () => {
- if (props.mock) return;
- const { canceled } = await os.confirm({
- type: 'question',
- text: i18n.ts.resetAreYouSure,
- });
- if (canceled) return;
- clear();
- },
- }] satisfies MenuItem[];
-
- const { dispose } = os.popup(defineAsyncComponent(() => import('@/components/MkPostFormOtherMenu.vue')), {
- items: menuDef,
- textLength: textLength.value,
- src: otherSettingsButton.value,
- }, {
- closed: () => dispose(),
- });
-}
-//#endregion
-
function pushVisibleUser(user: Misskey.entities.UserDetailed) {
if (!visibleUsers.value.some(u => u.username === user.username && u.host === user.host)) {
visibleUsers.value.push(user);
--
cgit v1.2.3-freya