Skip to content
Snippets Groups Projects
Commit 4e6f3b61 authored by Torsten Oppermann's avatar Torsten Oppermann
Browse files

[TASK] Marking manually created entries in the dropdown

parent d2de21a2
No related branches found
No related tags found
No related merge requests found
......@@ -213,6 +213,7 @@ class MailController extends ActionController {
$this->view->assign('languageTemplates', $templates);
$this->view->assign('languageLabels', BackendService::getLanguageLabels($languages));
$this->view->assign('templates', $registerArray);
$registerService = $this->objectManager->get(RegisterService::class);
$this->view->assign('isManual', $registerService->isManuallyRegisteredTemplate($parameters['selectedTemplate']));
......
......@@ -182,6 +182,7 @@ class RegisterService implements \TYPO3\CMS\Core\SingletonInterface {
$templateContent = $configArray['templateContent'];
$this->registerArray[$extensionKey][$templateKey] = [
'isManual' => $this->isManuallyRegisteredTemplate($templateKey),
'templatePath' => $templatePath,
'description' => $description,
'marker' => $marker,
......
......@@ -34,7 +34,7 @@
action: 'index',
selectedTemplateKey: templateKey,
selectedExtensionKey: extensionKey,
label: '{currentTemplate.templateName}'}" />
label: '{f:if(condition: \'{currentTemplate.isManual}\', then:\'*\')}{currentTemplate.templateName}'}" />
</f:for>
</optgroup>
</f:for>
......
......@@ -76,7 +76,6 @@
</f:else>
</f:if>
</f:section>
<f:section name="actionMenuItem">
<mail:be.menus.actionMenuItem
controller="{controller}"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment