Skip to content

Commit

Permalink
refactor: pass props using bool instead of string when instantiating …
Browse files Browse the repository at this point in the history
…editor component
  • Loading branch information
akinsey committed Oct 19, 2021
1 parent bde420f commit cf1a1d1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/views/Posts.vue
Original file line number Diff line number Diff line change
Expand Up @@ -413,7 +413,7 @@
<posts-move-thread-modal v-if="canMove()" :threadId="postData.data.thread?.id" :show="showPostsMoveThreadModal" @close="showPostsMoveThreadModal = false"/>
<posts-purge-thread-modal :threadId="postData.data.thread?.id" :boardId="postData.data.board?.id" :boardSlug="postData.data.board?.slug" :show="showPostsPurgeThreadModal" @close="showPostsPurgeThreadModal = false"/>
<posts-report-modal :selectedPost="selectedPost" :canReportPosts="true" :canReportUsers="true" :show="showPostsReportModal" @close="showPostsReportModal = false; selectedPost = null" />
<editor :showEditor="showEditor" @close="showEditor = false" postEditorMode="true" :thread="postData.data?.thread" :createAction="createPost" />
<editor :showEditor="showEditor" @close="showEditor = false" :postEditorMode="true" :thread="postData.data?.thread" :createAction="createPost" />
</template>

<script>
Expand Down
2 changes: 1 addition & 1 deletion src/views/Threads.vue
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@
<pagination v-if="threadData.data?.board" :page="threadData.data.page" :limit="threadData.data.limit" :count="threadData.data.board.thread_count"></pagination>
</div>
<set-moderators-modal v-if="threadData.data?.board" :board="threadData.data.board" :show="showSetModerators" @close="showSetModerators = false"></set-moderators-modal>
<editor v-if="threadData.data?.board" :showEditor="showEditor" @close="showEditor = false" threadEditorMode="true" :thread="{ title: '', board_id: threadData?.data?.board.id }" :createAction="createThread" />
<editor v-if="threadData.data?.board" :showEditor="showEditor" @close="showEditor = false" :threadEditorMode="true" :thread="{ title: '', board_id: threadData?.data?.board.id }" :createAction="createThread" />
</template>

<script>
Expand Down

0 comments on commit cf1a1d1

Please sign in to comment.