PluginProbe
Extendify / 3.2.3
Extendify v3.2.3
3.2.3 3.2.2 3.2.1 3.2.0 3.1.6 3.1.5 3.1.4 3.1.3 3.1.2 3.1.1 3.1.0 3.0.6 3.0.5 3.0.4 trunk 0.1.0 0.10.0 0.10.1 0.10.2 0.11.0 0.11.1 0.2.0 0.3.0 0.3.1 0.4.0 All 129 releases
← All changes | src/Notifications/slots.js +3 -3 3.2.1 → 3.2.3 View file →
@@ -1,5 +1,5 @@
1 -import { publishesSite } from './publish-site';
1 +import { ctaActionFor } from './cta-action';
2 2 import { Bar } from './templates/Bar';
3 3 import { Card } from './templates/Card';
4 4 import { Pill } from './templates/Pill';
5 5 import { Pricing } from './templates/Pricing';
@@ -35,10 +35,10 @@
35 35
36 36 // Deciding this inside Pill would count a view for a pill that never rendered.
37 37 const REQUIREMENTS = {
38 38 [SLOTS.FRONTEND_TOPBAR]: (notification, href) =>
39 - // A publishing pill has no href; it acts in place on click.
40 - Boolean(notification['cta-label'] && (href || publishesSite(notification))),
39 + // A pill that acts in place needs no href.
40 + Boolean(notification['cta-label'] && (href || ctaActionFor(notification))),
41 41 [SLOTS.ADMIN_MODAL]: hasOfferWhenBlocking,
42 42 [SLOTS.FRONTEND_MODAL]: hasOfferWhenBlocking,
43 43 };
44 44