Skip to content

Commit

Permalink
Move check for tracked data to vue component
Browse files Browse the repository at this point in the history
instead of reusing the live widget
  • Loading branch information
sgiehl committed Sep 20, 2023
1 parent 969327b commit 6d36aaf
Show file tree
Hide file tree
Showing 4 changed files with 107 additions and 52 deletions.
17 changes: 0 additions & 17 deletions plugins/SitesManager/templates/siteWithoutData.twig
Original file line number Diff line number Diff line change
Expand Up @@ -13,23 +13,6 @@
{% endblock %}

{% block content %}

<script type="text/javascript" charset="utf-8">
$(document).ready(function () {
$('<div />').insertAfter('[vue-entry="SitesManager.SiteWithoutData"]').liveWidget({
interval: 1000,
onUpdate: function () {
// reload page as soon as a visit was detected
broadcast.propagateNewPage('date=today');
},
dataUrlParams: {
module: 'Live',
action: 'getLastVisitsStart'
}
});
});
</script>

{% set additionalCtaEventContent %}{{ postEvent('Template.siteWithoutData.additionalCta') }}{% endset %}

<div
Expand Down
Loading

0 comments on commit 6d36aaf

Please sign in to comment.