|
65 | 65 | </NcCheckboxRadioSwitch> |
66 | 66 | <em>{{ t('settings', 'cron.php is registered at a webcron service to call cron.php every 5 minutes over HTTP. Use case: Very small instance (1–5 users depending on the usage).') }}</em> |
67 | 67 |
|
68 | | - <NcCheckboxRadioSwitch v-if="cliBasedCronPossible" |
69 | | - type="radio" |
| 68 | + <NcCheckboxRadioSwitch type="radio" |
| 69 | + :disabled="!cliBasedCronPossible" |
70 | 70 | :checked.sync="backgroundJobsMode" |
71 | 71 | value="cron" |
72 | 72 | name="backgroundJobsMode" |
73 | 73 | @update:checked="onBackgroundJobModeChanged"> |
74 | 74 | {{ t('settings', 'Cron (Recommended)') }} |
75 | 75 | </NcCheckboxRadioSwitch> |
76 | | - <em v-if="cliBasedCronPossible">{{ cronLabel }}</em> |
77 | | - <em v-else> |
78 | | - {{ t('settings', 'To run this you need the PHP POSIX extension. See {linkstart}PHP documentation{linkend} for more details.', { |
79 | | - linkstart: '<a href="https://www.php.net/manual/en/book.posix.php">', |
80 | | - linkend: '</a>', |
81 | | - }) }} |
82 | | - </em> |
| 76 | + <em v-html="cronLabel" /> |
83 | 77 | </NcSettingsSection> |
84 | 78 | </template> |
85 | 79 |
|
@@ -125,9 +119,14 @@ export default { |
125 | 119 | }, |
126 | 120 | computed: { |
127 | 121 | cronLabel() { |
128 | | - let desc = t('settings', 'Use system cron service to call the cron.php file every 5 minutes. Recommended for all instances.') |
| 122 | + let desc = t('settings', 'Use system cron service to call the cron.php file every 5 minutes.') |
129 | 123 | if (this.cliBasedCronPossible) { |
130 | | - desc += ' ' + t('settings', 'The cron.php needs to be executed by the system user "{user}".', { user: this.cliBasedCronUser }) |
| 124 | + desc += '<br>' + t('settings', 'The cron.php needs to be executed by the system user "{user}".', { user: this.cliBasedCronUser }) |
| 125 | + } else { |
| 126 | + desc += '<br>' + t('settings', 'The PHP POSIX extension is required. See {linkstart}PHP documentation{linkend} for more details.', { |
| 127 | + linkstart: '<a target="_blank" rel="noreferrer nofollow" class="external" href="https://www.php.net/manual/en/book.posix.php">', |
| 128 | + linkend: '</a>', |
| 129 | + }, undefined, { escape: false, sanitize: false }) |
131 | 130 | } |
132 | 131 | return desc |
133 | 132 | }, |
|
0 commit comments