Always load NPS poll on newsletters page

[MAILPOET-1670]
This commit is contained in:
Jan Jakeš
2018-12-13 11:45:35 +01:00
parent 7135fe512c
commit f27ecdc079
3 changed files with 4 additions and 2 deletions

View File

@ -58,6 +58,7 @@ class Setting extends Model {
'in_app_announcements' => [
'displayed' => []
],
'display_nps_poll' => true,
);
}

View File

@ -381,7 +381,8 @@ INSERT INTO `mp_mailpoet_settings` (`id`, `name`, `value`, `created_at`, `update
(21, 'tracking', 'a:1:{s:7:\"enabled\";s:1:\"1\";}', '2017-10-30 00:58:13', '2017-10-30 00:58:13'),
(22, 'analytics', 'a:1:{s:7:\"enabled\";s:0:\"\";}', '2017-10-30 00:58:13', '2017-10-30 00:58:13'),
(23, 'premium', 'a:1:{s:11:\"premium_key\";s:0:\"\";}', '2017-10-30 00:58:13', '2017-10-30 00:58:13'),
(24, 'user_seen_editor_tutorial1', '1', '2017-10-30 00:58:13', '2017-10-30 00:58:13');
(24, 'user_seen_editor_tutorial1', '1', '2017-10-30 00:58:13', '2017-10-30 00:58:13'),
(25, 'display_nps_poll', '0', '2018-12-13 14:20:00', '2018-12-13 14:20:00');
DROP TABLE IF EXISTS `mp_mailpoet_statistics_clicks`;
CREATE TABLE `mp_mailpoet_statistics_clicks` (

View File

@ -5,7 +5,7 @@
<script type="text/javascript">
var mailpoet_listing_per_page = <%= items_per_page %>;
var mailpoet_display_nps_poll = location.hash === '#/standard';
var mailpoet_display_nps_poll = <%= settings.display_nps_poll ? 'true' : 'false' %>;
var mailpoet_listing_per_page = <%= items_per_page %>;
var mailpoet_segments = <%= json_encode(segments) %>;
var mailpoet_settings = <%= json_encode(settings) %>;