diff --git a/packages/frontend/src/components/MkPostForm.vue b/packages/frontend/src/components/MkPostForm.vue
index 8a0bbe348a..5f4e40d513 100644
--- a/packages/frontend/src/components/MkPostForm.vue
+++ b/packages/frontend/src/components/MkPostForm.vue
@@ -92,7 +92,6 @@ SPDX-License-Identifier: AGPL-3.0-only
-
@@ -629,6 +628,26 @@ function showOtherSettings() {
},
}] satisfies MenuItem[];
+ if ($i.policies.scheduleNoteMax > 0) {
+ menuItems.push({ type: 'divider' }, {
+ type: 'button',
+ text: i18n.ts.schedulePost,
+ icon: 'ti ti-calendar-time',
+ action: toggleScheduleNote,
+ }, {
+ type: 'button',
+ text: i18n.ts.schedulePostList,
+ icon: 'ti ti-calendar-event',
+ action: () => {
+ const { dispose } = os.popup(defineAsyncComponent(() => import('@/components/MkSchedulePostListDialog.vue')), {}, {
+ closed: () => {
+ dispose();
+ },
+ });
+ },
+ });
+ }
+
os.popupMenu(menuItems, otherSettingsButton.value);
}
//#endregion
@@ -1121,32 +1140,6 @@ function toggleScheduleNote() {
}
}
-function showOtherMenu(ev: MouseEvent) {
- const menuItems: MenuItem[] = [];
-
- if ($i.policies.scheduleNoteMax > 0) {
- menuItems.push({
- type: 'button',
- text: i18n.ts.schedulePost,
- icon: 'ti ti-calendar-time',
- action: toggleScheduleNote,
- }, {
- type: 'button',
- text: i18n.ts.schedulePostList,
- icon: 'ti ti-calendar-event',
- action: () => {
- const { dispose } = os.popup(defineAsyncComponent(() => import('@/components/MkSchedulePostListDialog.vue')), {}, {
- closed: () => {
- dispose();
- },
- });
- },
- });
- }
-
- os.popupMenu(menuItems, ev.currentTarget ?? ev.target);
-}
-
onMounted(() => {
if (props.autofocus) {
focus();