forked from chatwoot/chatwoot
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Campaign table (chatwoot#2212)
* code cleanup * add campaign table * update locale texts * locale text cleanup * Rename selectedAgent with selectedSender in add campaign form * code cleanup * remove timer mixin * update avatar size to 20px * add border for table * add campaigns get action specs * rename campaign table component * fix style issues * update sender list based on inbox permission * style fixes * review fixes * add campaign sender component * replace wootsubmit button with wootbutton * update scroll width * replace campaign status with woot label * changes as per review * style fixes * remove unused code * disable campaign in inbox settings page * review fixes
- Loading branch information
Showing
7 changed files
with
344 additions
and
41 deletions.
There are no files selected for viewing
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
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
47 changes: 47 additions & 0 deletions
47
app/javascript/dashboard/routes/dashboard/settings/inbox/components/CampaignSender.vue
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 |
---|---|---|
@@ -0,0 +1,47 @@ | ||
<template> | ||
<div class="row--user-block"> | ||
<Thumbnail | ||
:src="sender.thumbnail" | ||
size="20px" | ||
:username="sender.name" | ||
:status="sender.availability_status" | ||
/> | ||
<div> | ||
<h6 class="text-block-title text-truncate"> | ||
{{ sender.name }} | ||
</h6> | ||
</div> | ||
</div> | ||
</template> | ||
<script> | ||
import Thumbnail from 'dashboard/components/widgets/Thumbnail.vue'; | ||
export default { | ||
components: { | ||
Thumbnail, | ||
}, | ||
props: { | ||
sender: { | ||
type: Object, | ||
default: () => {}, | ||
}, | ||
}, | ||
}; | ||
</script> | ||
|
||
<style scoped lang="scss"> | ||
@import '~dashboard/assets/scss/mixins'; | ||
.row--user-block { | ||
align-items: center; | ||
display: flex; | ||
text-align: left; | ||
.user-name { | ||
margin: 0; | ||
text-transform: capitalize; | ||
} | ||
.user-thumbnail-box { | ||
margin-right: var(--space-small); | ||
} | ||
} | ||
</style> |
Oops, something went wrong.