feat&fix(add Listmonk service and sync part 1, fix association email on member sync)
This commit is contained in:
@@ -24,6 +24,7 @@ class Synchronisations extends Page
|
||||
'ispconfig_mail',
|
||||
'ispconfig_web',
|
||||
'nextcloud',
|
||||
'listmonk',
|
||||
'services',
|
||||
];
|
||||
|
||||
@@ -154,6 +155,17 @@ class Synchronisations extends Page
|
||||
});
|
||||
}
|
||||
|
||||
public function syncListmonkAction(): Action
|
||||
{
|
||||
return Action::make('syncListmonk')
|
||||
->requiresConfirmation()
|
||||
->modalHeading(__('synchronisations.sections.listmonk.modal_heading'))
|
||||
->modalDescription(__('synchronisations.sections.listmonk.modal_description'))
|
||||
->modalSubmitActionLabel(__('synchronisations.action.submit'))
|
||||
->disabled(fn () => in_array($this->getCommandStatus('listmonk')['status'], ['pending', 'running']))
|
||||
->action(fn () => $this->enqueueCommand('listmonk', 'listmonk:sync-members'));
|
||||
}
|
||||
|
||||
public function syncServicesAction(): Action
|
||||
{
|
||||
return Action::make('syncServices')
|
||||
|
||||
Reference in New Issue
Block a user