Browse Source

Add dummy error value

sbkwgh 8 năm trước cách đây
mục cha
commit
58a4dadd41
1 tập tin đã thay đổi với 8 bổ sung2 xóa
  1. 8 2
      src/components/routes/Start.vue

+ 8 - 2
src/components/routes/Start.vue

@@ -6,7 +6,7 @@
 				First create your admin account for the forum.
 			</p>
 			<div>
-				<fancy-input v-model='username' width='100%' placeholder='Username'></fancy-input>
+				<fancy-input v-model='username' :error='errors.username' width='100%' placeholder='Username'></fancy-input>
 				<fancy-input v-model='password' width='100%' placeholder='Password' type='password'></fancy-input>
 				<fancy-input v-model='confirmPassword' width='100%' placeholder='Confirm password' type='password'></fancy-input>
 				<button style='width: 100%;' class='button button--green' @click='createAccount'>Create account</button>
@@ -43,7 +43,13 @@
 				forumName: '',
 				forumDescription: '',
 				categories: '',
-				panel: 1
+				panel: 1,
+
+				errors: {
+					username: {
+						message: 'Error message here!'
+					}
+				}
 			}
 		},
 		components: {