Feature: Add/Edit conversation labels (#488)

Co-authored-by: Pranav Raj S <pranavrajs@gmail.com>
This commit is contained in:
Nithin David Thomas 2020-02-16 15:46:26 +05:30 committed by GitHub
parent 77473dc2aa
commit e61ba95cf7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
31 changed files with 863 additions and 323 deletions

View file

@ -14,15 +14,19 @@ export default {
props: {
username: {
type: String,
default: '',
},
backgroundColor: {
type: String,
default: 'white',
},
color: {
type: String,
default: '#1f93ff',
},
customStyle: {
type: Object,
default: undefined,
},
size: {
type: Number,
@ -30,6 +34,7 @@ export default {
},
src: {
type: String,
default: '',
},
rounded: {
type: Boolean,
@ -72,7 +77,7 @@ export default {
<style lang="scss" scoped>
.avatar-container {
display: flex;
font-weight: bold;
font-weight: 500;
align-items: center;
justify-content: center;
text-align: center;

View file

@ -23,7 +23,7 @@
src="~dashboard/assets/images/fb-badge.png"
/>
<div
v-else-if="badge === 'Channel::WebWidget' && status === 'online'"
v-else-if="status === 'online'"
class="source-badge user--online"
:style="statusStyle"
></div>

View file

@ -93,7 +93,11 @@ export default {
];
},
viewProfileButtonLabel() {
return `${this.isContactPanelOpen ? 'Hide' : 'View'} Profile`;
return `${
this.isContactPanelOpen
? this.$t('CONVERSATION.HEADER.CLOSE')
: this.$t('CONVERSATION.HEADER.OPEN')
} ${this.$t('CONVERSATION.HEADER.DETAILS')}`;
},
},