[refactor] remove username field and let instance_name be the only AP Actor

This commit is contained in:
les
2019-12-04 00:50:15 +01:00
parent e84d7f3bd1
commit 3116e776a0
23 changed files with 159 additions and 201 deletions

View File

@@ -38,7 +38,6 @@ export default {
name: 'Settings',
data () {
return {
username_editable: false,
password: '',
user: { }
}
@@ -50,7 +49,7 @@ export default {
},
async asyncData ({ $axios, params }) {
const user = await $axios.$get('/auth/user')
return { user, username_editable: user.username.length === 0 }
return { user }
},
computed: {
...mapState(['settings']),