feat: One off campaign UI (#2621)

This commit is contained in:
Muhsin Keloth
2021-07-15 13:31:43 +05:30
committed by GitHub
parent aa7db90cd2
commit cf785123a5
16 changed files with 473 additions and 107 deletions

View File

@@ -0,0 +1,19 @@
import { CAMPAIGN_TYPES } from '../constants/campaign';
import inboxMixin from './inboxMixin';
export default {
mixins: [inboxMixin],
computed: {
campaignType() {
if (this.isAWebWidgetInbox) {
return CAMPAIGN_TYPES.ONGOING;
}
return CAMPAIGN_TYPES.ONE_OFF;
},
isOngoingType() {
return this.campaignType === CAMPAIGN_TYPES.ONGOING;
},
isOnOffType() {
return this.campaignType === CAMPAIGN_TYPES.ONE_OFF;
},
},
};