File tree 2 files changed +7
-8
lines changed
views/admin/system-settings/partials
2 files changed +7
-8
lines changed Original file line number Diff line number Diff line change @@ -50,7 +50,8 @@ export default class GenerateCronToken {
50
50
if ( typeof response . new_token !== 'undefined' ) {
51
51
debounce ( ( ) => {
52
52
this . $input . value = response . new_token ;
53
- this . $cronUrl . innerHTML = this . buildCronURl ( response . new_token ) ;
53
+ this . $cronUrl . innerText = this . buildCronURl ( response . new_token ) ;
54
+ this . $cronUrl . parentElement . classList . remove ( 'd-none' ) ;
54
55
} , 1000 ) ;
55
56
56
57
window . setTimeout ( ( ) => {
Original file line number Diff line number Diff line change 23
23
24
24
<p class =" small text-warning" >@lang (' settings.cron_token_generate_info' )</p >
25
25
26
- @if (system settings (' cron_token' ) )
27
- <p >
28
- @lang (' settings.cron_token_url' , [
29
- ' route' => route (' cron' , [' token' => system settings (' cron_token' ) ?: ' ' ])
30
- ] )
31
- </p >
32
- @endif
26
+ <p class =" {{ system settings (' cron_token' ) ? ' ' : ' d-none' } }" >
27
+ @lang (' settings.cron_token_url' , [
28
+ ' route' => route (' cron' , [' token' => system settings (' cron_token' ) ?: ' no-token-configured' ])
29
+ ] )
30
+ </p >
33
31
34
32
</div >
35
33
</div >
You can’t perform that action at this time.
0 commit comments