| @@ -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 | |