feat: Dedicated tab for campaigns (#2741)

This commit is contained in:
Muhsin Keloth 2021-08-11 20:29:33 +05:30 committed by GitHub
parent 8daf1fe033
commit 4d668d8db3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
22 changed files with 477 additions and 505 deletions

View file

@ -0,0 +1,38 @@
<template>
<div class="inbox">
<i :class="icon" />
<span>{{ inbox.name }}</span>
</div>
</template>
<script>
import { INBOX_TYPES } from 'shared/mixins/inboxMixin';
export default {
props: {
inbox: {
type: Object,
default: () => {},
},
},
computed: {
icon() {
if (this.inbox.channel_type === INBOX_TYPES.WEB) {
return 'icon ion-earth';
}
return 'icon ion-android-textsms';
},
},
};
</script>
<style scoped lang="scss">
.inbox {
display: flex;
align-items: center;
.icon {
margin-right: var(--space-micro);
min-width: var(--space-normal);
position: relative;
top: -1px;
}
}
</style>