mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-07 18:44:08 +00:00
Fixed: force collabora to use the current locale for the UI + improve sidebar on opening
This commit is contained in:
parent
0dfa7f8cf7
commit
2a3011d358
@ -20,6 +20,7 @@ use Chill\WopiBundle\Service\Controller\ResponderInterface;
|
|||||||
use Exception;
|
use Exception;
|
||||||
use Lexik\Bundle\JWTAuthenticationBundle\Services\JWTTokenManagerInterface;
|
use Lexik\Bundle\JWTAuthenticationBundle\Services\JWTTokenManagerInterface;
|
||||||
use loophp\psr17\Psr17Interface;
|
use loophp\psr17\Psr17Interface;
|
||||||
|
use Symfony\Component\HttpFoundation\Request;
|
||||||
use Symfony\Component\HttpFoundation\Response;
|
use Symfony\Component\HttpFoundation\Response;
|
||||||
use Symfony\Component\HttpKernel\Exception\AccessDeniedHttpException;
|
use Symfony\Component\HttpKernel\Exception\AccessDeniedHttpException;
|
||||||
use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
|
use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
|
||||||
@ -81,7 +82,7 @@ final class Editor
|
|||||||
$this->router = $router;
|
$this->router = $router;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function __invoke(string $fileId): Response
|
public function __invoke(string $fileId, Request $request): Response
|
||||||
{
|
{
|
||||||
if (null === $user = $this->security->getUser()) {
|
if (null === $user = $this->security->getUser()) {
|
||||||
throw new AccessDeniedHttpException('Please authenticate to access this feature');
|
throw new AccessDeniedHttpException('Please authenticate to access this feature');
|
||||||
@ -150,6 +151,7 @@ final class Editor
|
|||||||
UrlGeneratorInterface::ABSOLUTE_URL
|
UrlGeneratorInterface::ABSOLUTE_URL
|
||||||
),
|
),
|
||||||
'closebutton' => 1,
|
'closebutton' => 1,
|
||||||
|
'lang' => $request->getLocale(),
|
||||||
]
|
]
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
@ -25,6 +25,7 @@
|
|||||||
<form id="office_form" name="office_form" target="office_frame" action="{{ server }}" method="post">
|
<form id="office_form" name="office_form" target="office_frame" action="{{ server }}" method="post">
|
||||||
<input name="access_token" value="{{ access_token }}" type="hidden" />
|
<input name="access_token" value="{{ access_token }}" type="hidden" />
|
||||||
<input name="access_token_ttl" value="{{ access_token_ttl }}" type="hidden" />
|
<input name="access_token_ttl" value="{{ access_token_ttl }}" type="hidden" />
|
||||||
|
<input name="ui_defaults" value="TextRuler=fase;TextSidebar=false;TextStatusbar=true;PresentationSidebar=false;PresentationStatusbar=false;SpreadsheetSidebar=false;SpreadsheetStatusbar=false;UIMode=tabbed;SaveAsMode=group;" type="hidden" />
|
||||||
</form>
|
</form>
|
||||||
|
|
||||||
<span id="frameholder"></span>
|
<span id="frameholder"></span>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user