PluginProbe
Extendify / 3.2.1
Extendify v3.2.1
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 0.5.0 0.6.0 All 127 releases
extendify / src / Agent / workflows / theme / update-site-icon.js

update-site-icon.js in Extendify 3.2.1, at src/Agent/workflows/theme/update-site-icon.js

30 lines 893 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 import { UpdateSiteIconConfirm } from '@agent/workflows/theme/components/UpdateSiteIconConfirm';
2 import { __ } from '@wordpress/i18n';
3
4 const { abilities } = window.extAgentData;
5
6 export default {
7 available: () => abilities?.canEditSettings && abilities?.canUploadMedia,
8 id: 'update-site-icon',
9 whenFinished: {
10 component: UpdateSiteIconConfirm,
11 },
12 example: {
13 text: __('Change website browser icon', 'extendify-local'),
14 agentResponse: {
15 // translators: This message shows above a UI where the user can upload or replace their browser icon (favicon).
16 reply: __(
17 'Below you can upload or replace your website browser icon.',
18 'extendify-local',
19 ),
20 whenFinishedTool: {
21 id: 'update-site-icon',
22 labels: {
23 confirm: __('Updated the site icon', 'extendify-local'),
24 cancel: __('Canceled the site icon update', 'extendify-local'),
25 },
26 },
27 },
28 },
29 };
30