fix actor type not setting
This commit is contained in:
parent
1fe112c7f3
commit
0492a8d6a0
3 changed files with 6 additions and 3 deletions
1
changelog.d/actor-type.fix
Normal file
1
changelog.d/actor-type.fix
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
fixed being unable to set actor type from profile page
|
||||||
|
|
@ -122,6 +122,8 @@ export default {
|
||||||
data () {
|
data () {
|
||||||
const user = this.$store.getters.findUser(this.userId)
|
const user = this.$store.getters.findUser(this.userId)
|
||||||
|
|
||||||
|
console.log('LOL', JSON.parse(JSON.stringify(user)))
|
||||||
|
|
||||||
return {
|
return {
|
||||||
followRequestInProgress: false,
|
followRequestInProgress: false,
|
||||||
muteExpiryAmount: 0,
|
muteExpiryAmount: 0,
|
||||||
|
|
@ -466,8 +468,8 @@ export default {
|
||||||
show_birthday: !!this.newShowBirthday,
|
show_birthday: !!this.newShowBirthday,
|
||||||
}
|
}
|
||||||
|
|
||||||
if (this.actorType) {
|
if (this.newActorType) {
|
||||||
params.actor_type = this.actorType
|
params.actor_type = this.newActorType
|
||||||
}
|
}
|
||||||
|
|
||||||
if (this.newAvatarFile !== null) {
|
if (this.newAvatarFile !== null) {
|
||||||
|
|
|
||||||
|
|
@ -208,7 +208,7 @@
|
||||||
</span>
|
</span>
|
||||||
<span
|
<span
|
||||||
v-if="user.actor_type === 'Group'"
|
v-if="user.actor_type === 'Group'"
|
||||||
class="alert user-role"
|
class="alert neutral user-role"
|
||||||
>
|
>
|
||||||
{{ $t('user_card.group') }}
|
{{ $t('user_card.group') }}
|
||||||
</span>
|
</span>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue