diff options
author | Julius Härtl <jus@bitgrid.net> | 2018-11-21 12:49:31 +0100 |
---|---|---|
committer | Julius Härtl <jus@bitgrid.net> | 2018-11-21 12:49:31 +0100 |
commit | 37fa16614d83816a6a8d9502f0770631cf669d4f (patch) | |
tree | 1b2410c0940dfb02188542126446b655e18e41f3 /src/App.vue | |
parent | eea1a5d42f29e95523e417fbb34f236b3011afda (diff) |
Fix more eslint errors
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'src/App.vue')
-rw-r--r-- | src/App.vue | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/src/App.vue b/src/App.vue index 15457f61..ae3edd4c 100644 --- a/src/App.vue +++ b/src/App.vue @@ -1,5 +1,5 @@ <template> - <div class="app-social" v-if="!serverData.setup"> + <div v-if="!serverData.setup" class="app-social"> <div v-if="!serverData.public" id="app-navigation"> <app-navigation :menu="menu" /> </div> @@ -14,8 +14,9 @@ <form @submit.prevent="setCloudAddress"> <p> <label class="hidden">{{ t('social', 'ActivityPub URL base') }}</label> - <input type="url" :placeholder="serverData.cliUrl" v-model="cloudAddress" required /> - <input type="submit" :value="t('social', 'Finish setup')" class="primary" /> + <input :placeholder="serverData.cliUrl" v-model="cloudAddress" type="url" + required> + <input :value="t('social', 'Finish setup')" type="submit" class="primary"> </p> </form> </template> @@ -64,7 +65,7 @@ export default { return { infoHidden: false, state: [], - cloudAddress: '', + cloudAddress: '' } }, computed: { @@ -147,11 +148,11 @@ export default { this.infoHidden = true }, setCloudAddress() { - axios.post(OC.generateUrl('apps/social/api/v1/config/cloudAddress'), {cloudAddress: this.cloudAddress}).then((response) => { - this.$store.commit('setServerDataEntry', 'setup', false); - this.$store.commit('setServerDataEntry', 'cloudAddress', this.cloudAddress); - }); + axios.post(OC.generateUrl('apps/social/api/v1/config/cloudAddress'), { cloudAddress: this.cloudAddress }).then((response) => { + this.$store.commit('setServerDataEntry', 'setup', false) + this.$store.commit('setServerDataEntry', 'cloudAddress', this.cloudAddress) + }) } } } -</script>
\ No newline at end of file +</script> |