-
Notifications
You must be signed in to change notification settings - Fork 446
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
replace NcAvatar with AvatarWrapper in call components
Signed-off-by: Maksim Sukharev <[email protected]>
- Loading branch information
Showing
4 changed files
with
48 additions
and
155 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ | |
- | ||
- @author Marco Ambrosini <[email protected]> | ||
- | ||
- @license GNU AGPL version 3 or any later version | ||
- @license AGPL-3.0-or-later | ||
- | ||
- This program is free software: you can redistribute it and/or modify | ||
- it under the terms of the GNU Affero General Public License as | ||
|
@@ -40,17 +40,12 @@ | |
class="preview__novideo"> | ||
<VideoBackground :display-name="displayName" | ||
:user="userId" /> | ||
<NcAvatar v-if="userId" | ||
<AvatarWrapper :id="userId" | ||
:name="displayName" | ||
:source="actorType" | ||
:size="128" | ||
:disable-menu="true" | ||
:disable-tooltip="true" | ||
:show-user-status="false" | ||
:user="userId" | ||
:display-name="displayName" /> | ||
<div v-if="!userId" | ||
class="avatar avatar-128px guest"> | ||
{{ firstLetterOfGuestName }} | ||
</div> | ||
disable-menu | ||
disable-tooltip /> | ||
</div> | ||
</div> | ||
|
||
|
@@ -190,13 +185,13 @@ import { emit, subscribe, unsubscribe } from '@nextcloud/event-bus' | |
|
||
import NcActionButton from '@nextcloud/vue/dist/Components/NcActionButton.js' | ||
import NcActions from '@nextcloud/vue/dist/Components/NcActions.js' | ||
import NcAvatar from '@nextcloud/vue/dist/Components/NcAvatar.js' | ||
import NcButton from '@nextcloud/vue/dist/Components/NcButton.js' | ||
import NcCheckboxRadioSwitch from '@nextcloud/vue/dist/Components/NcCheckboxRadioSwitch.js' | ||
import NcModal from '@nextcloud/vue/dist/Components/NcModal.js' | ||
import NcNoteCard from '@nextcloud/vue/dist/Components/NcNoteCard.js' | ||
import Tooltip from '@nextcloud/vue/dist/Directives/Tooltip.js' | ||
|
||
import AvatarWrapper from '../AvatarWrapper/AvatarWrapper.vue' | ||
import VideoBackground from '../CallView/shared/VideoBackground.vue' | ||
import MediaDevicesSelector from '../MediaDevicesSelector.vue' | ||
import CallButton from '../TopBar/CallButton.vue' | ||
|
@@ -219,14 +214,14 @@ export default { | |
}, | ||
|
||
components: { | ||
AvatarWrapper, | ||
Bell, | ||
BellOff, | ||
CallButton, | ||
Cog, | ||
Creation, | ||
NcActionButton, | ||
NcActions, | ||
NcAvatar, | ||
NcButton, | ||
NcCheckboxRadioSwitch, | ||
NcModal, | ||
|
@@ -279,15 +274,14 @@ export default { | |
) | ||
}, | ||
|
||
firstLetterOfGuestName() { | ||
const customName = this.guestName !== t('spreed', 'Guest') ? this.guestName : '?' | ||
return customName.charAt(0) | ||
}, | ||
|
||
userId() { | ||
return this.$store.getters.getUserId() | ||
}, | ||
|
||
actorType() { | ||
return this.$store.getters.getActorType() | ||
}, | ||
|
||
token() { | ||
return this.$store.getters.getToken() | ||
}, | ||
|
@@ -557,11 +551,6 @@ export default { | |
</script> | ||
|
||
<style lang="scss" scoped> | ||
@import '../../assets/variables'; | ||
@import '../../assets/avatar'; | ||
@include avatar-mixin(64px); | ||
@include avatar-mixin(128px); | ||
|
||
.media-settings { | ||
padding: calc(var(--default-grid-baseline)*4); | ||
background-color: var(--color-main-background); | ||
|
@@ -608,7 +597,7 @@ export default { | |
} | ||
|
||
&__call-preferences { | ||
height: $clickable-area; | ||
height: var(--default-clickable-area); | ||
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
|