Skip to content

Commit aa387d4

Browse files
committed
Update editMode
1 parent 4768acb commit aa387d4

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/components/ThePostWrite.vue

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,11 @@
7474
<div class="write__input write__content-checkbox">
7575
<label v-if="boardId===7" class="checkbox">
7676
{{ $t('is-anonymous') }}
77-
<input v-model="isAnonymous" type="checkbox">
77+
<input
78+
v-model="isAnonymous"
79+
type="checkbox"
80+
:disabled="editMode"
81+
>
7882
</label>
7983

8084
<label class="checkbox">
@@ -235,6 +239,7 @@ export default {
235239
this.title = this.post.title
236240
this.isSocial = this.post.is_content_social
237241
this.isSexual = this.post.is_content_sexual
242+
this.isAnonymous = this.post.name_type === 2
238243
this.loaded = false
239244
240245
this.$nextTick(() => {

0 commit comments

Comments
 (0)