Skip to content

Commit

Permalink
fix(frontend): 이벤트가 포함된 노트를 삭제 후 편집할 때, 이벤트를 편집하지 않으면 노트를 게시할 수 없음
Browse files Browse the repository at this point in the history
  • Loading branch information
noridev committed Nov 7, 2024
1 parent daae1aa commit 74cb100
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG_CHERRYPICK.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ Misskey의 전체 변경 사항을 확인하려면, [CHANGELOG.md#2024xx](CHANGE
### Client
- Enhance: 노트 작성 영역에서 각 항목이 더 잘 구분되도록 조정함
- Fix: 노트 삭제 예약 기한을 `기간 지정`으로 설정한 경우 노트가 즉시 삭제될 수 있음
- Fix: 이벤트가 포함된 노트를 `삭제 후 편집`할 때, 이벤트를 편집하지 않으면 노트를 게시할 수 없음

### Server
- Enhance: 노트 편집 제한 강화
Expand Down
8 changes: 6 additions & 2 deletions packages/frontend/src/components/MkEventEditor.vue
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ SPDX-License-Identifier: AGPL-3.0-only
</template>

<script lang="ts" setup>
import { Ref, ref, watch } from 'vue';
import { onMounted, Ref, ref, watch } from 'vue';
import * as Misskey from 'cherrypick-js';
import MkInput from './MkInput.vue';
import MkSwitch from './MkSwitch.vue';
Expand Down Expand Up @@ -218,10 +218,14 @@ watch([
price,
availabilityStart,
availabilityEnd,
keywords
keywords,
], () => emit('update:modelValue', get()), {
deep: true,
});

onMounted(() => {
emit('update:modelValue', get());
});
</script>

<style lang="scss" scoped>
Expand Down

0 comments on commit 74cb100

Please sign in to comment.