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-logo.js

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

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