user avatar cleanup
This commit is contained in:
parent
d4c0ccf659
commit
99886ac28c
2 changed files with 28 additions and 9 deletions
|
|
@ -14,12 +14,31 @@ library.add(
|
|||
)
|
||||
|
||||
const UserAvatar = {
|
||||
props: [
|
||||
'user',
|
||||
'compact',
|
||||
'showActorTypeIndicator',
|
||||
'url'
|
||||
],
|
||||
props: {
|
||||
// User object to show avatar of
|
||||
user: {
|
||||
required: true,
|
||||
type: Object
|
||||
},
|
||||
// Use less space and use alternative roundness
|
||||
compact: {
|
||||
required: false,
|
||||
type: Boolean,
|
||||
default: false
|
||||
},
|
||||
// Show small icon indicating if account is a bot or group
|
||||
showActorTypeIndicator : {
|
||||
required: false,
|
||||
type: Boolean,
|
||||
default: false
|
||||
},
|
||||
// Override avatar image URL, useful for profile editing
|
||||
url: {
|
||||
required: false,
|
||||
type: String,
|
||||
default: null
|
||||
}
|
||||
},
|
||||
data () {
|
||||
return {
|
||||
showPlaceholder: false,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue