Improve readability
This commit is contained in:
		
							parent
							
								
									91811ea500
								
							
						
					
					
						commit
						80c74b1fa7
					
				
					 1 changed files with 5 additions and 0 deletions
				
			
		| 
						 | 
					@ -26,6 +26,7 @@ import { toUnicode } from 'punycode';
 | 
				
			||||||
 | 
					
 | 
				
			||||||
export default Vue.extend({
 | 
					export default Vue.extend({
 | 
				
			||||||
	i18n: i18n('common/views/components/signin.vue'),
 | 
						i18n: i18n('common/views/components/signin.vue'),
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	props: {
 | 
						props: {
 | 
				
			||||||
		withAvatar: {
 | 
							withAvatar: {
 | 
				
			||||||
			type: Boolean,
 | 
								type: Boolean,
 | 
				
			||||||
| 
						 | 
					@ -33,6 +34,7 @@ export default Vue.extend({
 | 
				
			||||||
			default: true
 | 
								default: true
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
	},
 | 
						},
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	data() {
 | 
						data() {
 | 
				
			||||||
		return {
 | 
							return {
 | 
				
			||||||
			signing: false,
 | 
								signing: false,
 | 
				
			||||||
| 
						 | 
					@ -45,11 +47,13 @@ export default Vue.extend({
 | 
				
			||||||
			meta: null
 | 
								meta: null
 | 
				
			||||||
		};
 | 
							};
 | 
				
			||||||
	},
 | 
						},
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	created() {
 | 
						created() {
 | 
				
			||||||
		this.$root.getMeta().then(meta => {
 | 
							this.$root.getMeta().then(meta => {
 | 
				
			||||||
			this.meta = meta;
 | 
								this.meta = meta;
 | 
				
			||||||
		});
 | 
							});
 | 
				
			||||||
	},
 | 
						},
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	methods: {
 | 
						methods: {
 | 
				
			||||||
		onUsernameChange() {
 | 
							onUsernameChange() {
 | 
				
			||||||
			this.$root.api('users/show', {
 | 
								this.$root.api('users/show', {
 | 
				
			||||||
| 
						 | 
					@ -60,6 +64,7 @@ export default Vue.extend({
 | 
				
			||||||
				this.user = null;
 | 
									this.user = null;
 | 
				
			||||||
			});
 | 
								});
 | 
				
			||||||
		},
 | 
							},
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		onSubmit() {
 | 
							onSubmit() {
 | 
				
			||||||
			this.signing = true;
 | 
								this.signing = true;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue