Client - display user picture in users administration

This commit is contained in:
Sam
2021-10-31 13:36:36 +01:00
parent 4a5f175053
commit feb4f0f7c3
2 changed files with 18 additions and 14 deletions

View File

@ -28,11 +28,10 @@
</template>
<script lang="ts">
import { PropType, computed, defineComponent } from 'vue'
import { PropType, defineComponent } from 'vue'
import UserPicture from '@/components/User/UserPicture.vue'
import { IUserProfile } from '@/types/user'
import { getApiUrl } from '@/utils'
export default defineComponent({
name: 'ProfileDisplay',
@ -45,17 +44,6 @@
required: true,
},
},
setup(props) {
return {
authUserPictureUrl: computed(() =>
props.user.picture
? `${getApiUrl()}/users/${
props.user.username
}/picture?${Date.now()}`
: ''
),
}
},
})
</script>