diff --git a/packages/frontend/src/components/MkPostForm.vue b/packages/frontend/src/components/MkPostForm.vue
index a5ea648277..9cbd79d75a 100644
--- a/packages/frontend/src/components/MkPostForm.vue
+++ b/packages/frontend/src/components/MkPostForm.vue
@@ -19,19 +19,19 @@ SPDX-License-Identifier: AGPL-3.0-only
-
-
+
+
@@ -154,7 +154,7 @@ const props = withDefaults(defineProps<{
mock: false,
});
-let postChannel = ref(props.channel)
+let postChannel = ref(props.channel);
provide('mock', props.mock);
@@ -456,9 +456,11 @@ function setVisibility() {
isSilenced: $i?.isSilenced,
localOnly: localOnly.value,
src: visibilityButton.value,
+ currentChannel: postChannel.value,
}, {
changeVisibility: v => {
visibility.value = v;
+ postChannel.value = null;
if (defaultStore.state.rememberNoteVisibility) {
defaultStore.set('visibility', visibility.value);
}
diff --git a/packages/frontend/src/components/MkVisibilityPicker.vue b/packages/frontend/src/components/MkVisibilityPicker.vue
index 3a02b26feb..cf2707dcbe 100644
--- a/packages/frontend/src/components/MkVisibilityPicker.vue
+++ b/packages/frontend/src/components/MkVisibilityPicker.vue
@@ -9,35 +9,35 @@ SPDX-License-Identifier: AGPL-3.0-only
{{ i18n.ts.visibility }}
-
+
{{ i18n.ts._visibility.public }}
{{ i18n.ts._visibility.publicDescription }}
-
+
{{ i18n.ts._visibility.home }}
{{ i18n.ts._visibility.homeDescription }}
-
+
{{ i18n.ts._visibility.followers }}
{{ i18n.ts._visibility.followersDescription }}
-
+
{{ i18n.ts._visibility.specified }}
{{ i18n.ts._visibility.specifiedDescription }}
-
+
{{ channel.name }}
@@ -52,6 +52,7 @@ import * as Misskey from 'misskey-js';
import MkModal from '@/components/MkModal.vue';
import { i18n } from '@/i18n.js';
import * as os from '@/os.js';
+import {Channel} from "misskey-js/built/autogen/models.js";
const modal = shallowRef>();
@@ -60,11 +61,13 @@ const props = withDefaults(defineProps<{
isSilenced: boolean;
localOnly: boolean;
src?: HTMLElement;
+ currentChannel?: Channel
}>(), {
});
const emit = defineEmits<{
(ev: 'changeVisibility', v: typeof Misskey.noteVisibilities[number]): void;
+ (ev: 'changeChannel', v: Channel) : void
(ev: 'closed'): void;
}>();