MishkaCmsCoreWeb. Live. Admin. Components. ShareCardRedraw
(Mishka CMS Core v0.0.1)
Copy Markdown
View Source
A Redraw share cards button: after a confirmation, every share card of a site — or of every
active site — is drawn again over its old file in the background
(MishkaCmsCore.Runtime.ShareCard.redraw_all/2 with force: true), one at a time on the
:share_cards queue, and the button says how many cards were queued once the planner has
collected them.
The settings page's SEO tab draws one for every producer together and one for each producer
that answers MishkaCmsCore.Runtime.ShareCard.targets_event/0 on the site; an extension's
"on this site" modal draws one for its own (MishkaCmsCoreWeb.Live.Admin.Components.ExtensionInstallerPanel.doctor_modal/1).
Assigns:
:id:site_id— the site, ornilfor every active site:producer— the one producer to redraw,"mishka_blog";nilfor every one:allowed?— whether the viewer may redraw them; the parent decides, the button refuses without it:title,:blurb,:action— what the row says, and the button:wait— how many milliseconds the count is waited for, 60 000 by default