diff --git a/locales/ja-JP.yml b/locales/ja-JP.yml
index c44e3938b13e..4a4a56561d48 100644
--- a/locales/ja-JP.yml
+++ b/locales/ja-JP.yml
@@ -2623,7 +2623,6 @@ _offlineScreen:
title: "オフライン - サーバーに接続できません"
header: "サーバーに接続できません"
-<<<<<<< HEAD
_urlPreviewSetting:
title: "URLプレビューの設定"
enable: "URLプレビューを有効にする"
@@ -2643,7 +2642,7 @@ _mediaControls:
pip: "ピクチャインピクチャ"
playbackRate: "再生速度"
loop: "ループ再生"
-=======
+
_hideReactionCount:
none: "非表示にしない"
self: "自分のノートのみ"
@@ -2653,4 +2652,3 @@ _hideReactionCount:
_draftSavingBehavior:
auto: "自動的に保存する"
manual: "都度確認する"
->>>>>>> 03d1c493a2 (feat: 下書き機能 (#144))
diff --git a/packages/frontend/src/components/MkPostForm.vue b/packages/frontend/src/components/MkPostForm.vue
index ba282184d16a..4ec46ec3bf64 100644
--- a/packages/frontend/src/components/MkPostForm.vue
+++ b/packages/frontend/src/components/MkPostForm.vue
@@ -87,6 +87,7 @@ SPDX-License-Identifier: AGPL-3.0-only
+
@@ -260,7 +261,6 @@ const canPost = computed((): boolean => {
props.renote != null ||
(props.reply != null && quoteId.value != null)
) &&
- (scheduledNoteDelete.value ? scheduledNoteDelete.value.isValid : true) &&
(1 <= textLength.value || 1 <= files.value.length || !!poll.value || !!renote.value) &&
(textLength.value <= maxTextLength.value) &&
(!poll.value || poll.value.choices.length >= 2);
@@ -269,53 +269,6 @@ const canPost = computed((): boolean => {
const withHashtags = computed(defaultStore.makeGetterSetter('postFormWithHashtags'));
const hashtags = computed(defaultStore.makeGetterSetter('postFormHashtags'));
-const bottomItemActionDef: Record
= reactive({
- attachFile: {
- action: chooseFileFrom,
- },
- poll: {
- active: poll,
- action: togglePoll,
- },
- scheduledNoteDelete: {
- active: scheduledNoteDelete,
- action: toggleScheduledNoteDelete,
- },
- useCw: {
- active: useCw,
- action: () => useCw.value = !useCw.value,
- },
- mention: {
- action: insertMention,
- },
- hashtags: {
- active: withHashtags,
- action: () => withHashtags.value = !withHashtags.value,
- },
- plugins: {
- hide: postFormActions.length === 0,
- action: showActions,
- },
- emoji: {
- action: insertEmoji,
- },
- addMfmFunction: {
- hide: computed(() => !showAddMfmFunction.value),
- action: insertMfmFunction,
- },
- clearPost: {
- action: clear,
- },
- saveAsDraft: {
- action: () => saveDraft(false),
- },
-});
-
->>>>>>> 03d1c493a2 (feat: 下書き機能 (#144))
watch(text, () => {
checkMissingMention();
}, { immediate: true });
@@ -723,7 +676,7 @@ function onDrop(ev: DragEvent): void {
async function saveDraft(auto = true) {
if (props.instant || props.mock) return;
- if (auto && defaultStore.state.draftSavingBehavior !== 'auto') return;
+ if (auto) return;
if (!auto) {
// 手動での保存の場合は自動保存したものを削除した上で保存
@@ -738,7 +691,6 @@ async function saveDraft(auto = true) {
localOnly: localOnly.value,
files: files.value,
poll: poll.value,
- scheduledNoteDelete: scheduledNoteDelete.value,
}, draftAuxId.value as string);
if (!auto) {
@@ -801,9 +753,6 @@ async function applyDraft(draft: noteDrafts.NoteDraft, native = false) {
if (draft.data.poll) {
poll.value = draft.data.poll;
}
- if (draft.data.scheduledNoteDelete) {
- scheduledNoteDelete.value = draft.data.scheduledNoteDelete;
- }
}
async function post(ev?: MouseEvent) {
@@ -980,14 +929,8 @@ function cancel() {
}
async function closed() {
- if (defaultStore.state.draftSavingBehavior === 'manual' && (text.value !== '' || files.value.length > 0)) {
- os.confirm({
- type: 'question',
- text: i18n.ts.saveConfirm,
- }).then(({ canceled }) => {
- if (canceled) return;
- saveDraft(false);
- });
+ if (text.value !== '' || files.value.length > 0) {
+ return;
}
}
diff --git a/packages/frontend/src/pages/settings/post-form.vue b/packages/frontend/src/pages/settings/post-form.vue
deleted file mode 100644
index 4a04583b626b..000000000000
--- a/packages/frontend/src/pages/settings/post-form.vue
+++ /dev/null
@@ -1,154 +0,0 @@
-
-
-
- {{ i18n.ts.postForm }}{{ i18n.ts.originalFeature }}
-
-
-
-
-
-
-
-
-
- {{ i18n.ts.addItem }}
- {{ i18n.ts.default }}
- {{ i18n.ts.save }}
-
-
{{ i18n.ts.postFormBottomSettingsDescription }}
-
- {{ i18n.ts.draftSavingBehavior }}{{ i18n.ts.originalFeature }}
-
-
-
-
- {{ i18n.ts.disableNoteDraftingDescription }}
- {{ i18n.ts.disableNoteDrafting }}
- {{ i18n.ts.originalFeature }}
-
-
-
-
-
-
-
diff --git a/packages/frontend/src/scripts/note-drafts.ts b/packages/frontend/src/scripts/note-drafts.ts
index 67abc004a3ca..203f5a14c28f 100644
--- a/packages/frontend/src/scripts/note-drafts.ts
+++ b/packages/frontend/src/scripts/note-drafts.ts
@@ -17,7 +17,6 @@ export type NoteDraft = {
localOnly: boolean;
files: Misskey.entities.DriveFile[];
poll: PollEditorModelValue | null;
- scheduledNoteDelete: DeleteScheduleEditorModelValue | null;
};
};
diff --git a/packages/frontend/src/scripts/post-form.ts b/packages/frontend/src/scripts/post-form.ts
index 40c63acb393d..4ad753566f76 100644
--- a/packages/frontend/src/scripts/post-form.ts
+++ b/packages/frontend/src/scripts/post-form.ts
@@ -9,10 +9,6 @@ export const bottomItemDef = {
title: i18n.ts.poll,
icon: 'ti-chart-arrows',
},
- scheduledNoteDelete: {
- title: i18n.ts.scheduledNoteDelete,
- icon: 'ti-bomb',
- },
useCw: {
title: i18n.ts.useCw,
icon: 'ti-eye-off',