Skip to content

Commit 1e7d66f

Browse files
committed
[push] Fix for table rendering
1 parent a0801a1 commit 1e7d66f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

plugins/push/frontend/public/javascripts/component.push.dash.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -170,12 +170,12 @@ window.component('push.dash', function (dash) {
170170
}, sTitle: t('pu.t.status'), bSearchable: false
171171
}
172172
: {
173-
mData: unprop.bind(null, 'result'), sName: 'status', sType: 'string', mRender: function (d, type, result) {
173+
mData: unprop.bind(null, 'result'), sName: 'status', sType: 'string', mRender: function (d, type, msg) {
174174
if (d.autoEnd() && new Date(d.autoEnd()).getTime() < Date.now()) {
175175
return t('pu.ended');
176176
} else {
177177
return '<div class="on-off-switch">' +
178-
'<input type="checkbox" class="on-off-switch-checkbox status-switcher" id="message-' + d._id() + '" ' + (result.isScheduled() ? 'checked' : '') + '>' +
178+
'<input type="checkbox" class="on-off-switch-checkbox status-switcher" id="message-' + d._id() + '" ' + (msg.result.isScheduled() ? 'checked' : '') + '>' +
179179
'<label class="on-off-switch-label" for="message-' + d._id() + '"></label>' +
180180
'<span class="text">' + t('pu.enable') + '</span>';
181181
}

0 commit comments

Comments
 (0)