Skip to content

Commit b5784bf

Browse files
author
Cookiezaurs
committed
[push] Show segmentation, geo and cohorts related components in push drawer on editing draft.
1 parent b498b05 commit b5784bf

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

plugins/push/frontend/public/javascripts/countly.views.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1122,6 +1122,10 @@
11221122
this.setIsLoading(true);
11231123
countlyPushNotification.service.fetchById(this.id)
11241124
.then(function(response) {
1125+
//Set default settings
1126+
response.isEe = (typeof countlySegmentation !== 'undefined');
1127+
response.isGeo = (typeof countlyLocationTargetComponent !== 'undefined');
1128+
response.isCohorts = (typeof countlyCohorts !== 'undefined');
11251129
self.setPushNotificationUnderEdit(response);
11261130
if (self.userCommand === self.UserCommandEnum.DUPLICATE) {
11271131
self.setId(null);

0 commit comments

Comments
 (0)