feat: One off campaign UI (#2621)
This commit is contained in:
19
app/javascript/shared/mixins/campaignMixin.js
Normal file
19
app/javascript/shared/mixins/campaignMixin.js
Normal 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;
|
||||
},
|
||||
},
|
||||
};
|
||||
Reference in New Issue
Block a user