Просмотр исходного кода

Use show rather than visible on editor

sbkwgh 8 лет назад
Родитель
Сommit
1d9a8a23f8

+ 2 - 2
src/components/InputEditor.vue

@@ -4,7 +4,7 @@
 		:class='{
 			"input_editor--focus": focused,
 			"input_editor--float": float,
-			"input_editor--hidden": !visible
+			"input_editor--hidden": !show
 		}'
 	>
 		<div class='input_editor__reply_username' v-if='replyUsername'>Replying to <strong>{{replyUsername}}</strong></div>
@@ -72,7 +72,7 @@
 
 	export default {
 		name: 'InputEditor',
-		props: ['value', 'float', 'replyUsername', 'hideClose', 'visible'],
+		props: ['value', 'float', 'replyUsername', 'hideClose', 'show'],
 		components: {
 			ModalWindow,
 			FancyInput,

+ 1 - 1
src/components/routes/Thread.vue

@@ -17,7 +17,7 @@
 		<input-editor
 			v-model='editor'
 			:float='true'
-			:visible='editorVisible'
+			:show='editorVisible'
 			:replyUsername='replyUsername'
 			v-on:close='hideEditor'
 			v-on:submit='addPost'

+ 1 - 1
src/components/routes/ThreadNew.vue

@@ -3,7 +3,7 @@
 		<div class='h1'>Post new thread</div>
 		<span class='select_button_text'>Post in category:</span>
 		<select-button v-model='selectedCategory' :options='categories'></select-button>
-		<input-editor v-model='editor' :visible='true' :hide-close='true' style='margin-top: 1rem'></input-editor>
+		<input-editor v-model='editor' :show='true' :hide-close='true' style='margin-top: 1rem'></input-editor>
 		<button class='button button--green submit'>Post thread</button>
 	</div>
 </template>