| 1 |
import { UpdateSettingConfirm } from '@agent/workflows/settings/components/UpdateSettingConfirm'; |
| 2 |
import { __ } from '@wordpress/i18n'; |
| 3 |
|
| 4 |
const { abilities } = window.extAgentData; |
| 5 |
|
| 6 |
export const allowedSettings = [ |
| 7 |
'posts_per_page', |
| 8 |
'use_smilies', |
| 9 |
'start_of_week', |
| 10 |
'time_format', |
| 11 |
'date_format', |
| 12 |
'title', |
| 13 |
'description', |
| 14 |
]; |
| 15 |
export default { |
| 16 |
available: () => abilities?.canEditSettings, |
| 17 |
id: 'edit-wp-setting', |
| 18 |
whenFinished: { component: UpdateSettingConfirm }, |
| 19 |
example: { |
| 20 |
text: __('Change website title', 'extendify-local'), |
| 21 |
agentResponse: { |
| 22 |
// translators: The agent asks this, then waits for the user to type their new site title. |
| 23 |
reply: __( |
| 24 |
'What would you like your new website title to be?', |
| 25 |
'extendify-local', |
| 26 |
), |
| 27 |
}, |
| 28 |
}, |
| 29 |
}; |
| 30 |
|