Skip to content

Commit

Permalink
enhance(frontend): 노트 작성 폼에서 '공개 범위 기억하기' 설정을 변경할 수 있음
Browse files Browse the repository at this point in the history
  • Loading branch information
noridev committed Jun 12, 2024
1 parent da5d52b commit 72e5c8d
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG_CHERRYPICK.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ Misskey의 전체 변경 사항을 확인하려면, [CHANGELOG.md#2024xx](CHANGE
Misskey의 전체 변경 사항을 확인하려면, [CHANGELOG.md#2024xx](CHANGELOG.md#2024xx) 문서를 참고하십시오.

### Client
- Enhance: 노트 작성 폼에서 '공개 범위 기억하기' 설정을 변경할 수 있음
- Fix: 타임라인 노트의 리액션 뷰어에 리모트 서버의 커스텀 이모지가 표시되지 않음
- Fix: '리노트 공개 범위 지정' 옵션이 `없음`으로 설정된 경우 리노트를 할 수 없음

Expand Down
12 changes: 11 additions & 1 deletion packages/frontend/src/components/MkVisibilityPicker.vue
Original file line number Diff line number Diff line change
Expand Up @@ -37,14 +37,22 @@ SPDX-License-Identifier: AGPL-3.0-only
<span :class="$style.itemDescription">{{ i18n.ts._visibility.specifiedDescription }}</span>
</div>
</button>

<MkDivider style="margin: 5px 0;"/>

<div :class="$style.item">
<MkSwitch v-model="rememberNoteVisibility">{{ i18n.ts.rememberNoteVisibility }}</MkSwitch>
</div>
</div>
</MkModal>
</template>

<script lang="ts" setup>
import { nextTick, shallowRef, ref } from 'vue';
import { nextTick, shallowRef, ref, computed } from 'vue';
import * as Misskey from 'cherrypick-js';
import MkModal from '@/components/MkModal.vue';
import MkSwitch from '@/components/MkSwitch.vue';
import MkDivider from '@/components/MkDivider.vue';
import { i18n } from '@/i18n.js';
import { defaultStore } from '@/store.js';

Expand All @@ -64,6 +72,8 @@ const emit = defineEmits<{
(ev: 'closed'): void;
}>();

const rememberNoteVisibility = computed(defaultStore.makeGetterSetter('rememberNoteVisibility'));

const v = ref(props.currentVisibility);

function choose(visibility: typeof Misskey.noteVisibilities[number]): void {
Expand Down

0 comments on commit 72e5c8d

Please sign in to comment.