diff options
author | Julius Härtl <jus@bitgrid.net> | 2019-12-06 16:09:18 +0300 |
---|---|---|
committer | Julius Härtl <jus@bitgrid.net> | 2019-12-06 16:09:18 +0300 |
commit | 797e29ccf94d253c70879f75ea92a1f812b76572 (patch) | |
tree | 0978bdeb1b0952986d0f5de6d136d2cf28f1b4ba /appinfo | |
parent | 18b3840d77a4c81243dbb53c9c0a814f3908a236 (diff) |
Persist setting for rich workspace
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'appinfo')
-rw-r--r-- | appinfo/app.php | 15 | ||||
-rw-r--r-- | appinfo/routes.php | 3 |
2 files changed, 2 insertions, 16 deletions
diff --git a/appinfo/app.php b/appinfo/app.php index 4913f8aa4..d52ea44fb 100644 --- a/appinfo/app.php +++ b/appinfo/app.php @@ -24,19 +24,4 @@ declare(strict_types=1); namespace OCA\Text\AppInfo; -$eventDispatcher = \OC::$server->getEventDispatcher(); - -// only load text editor if the user is logged in -if (\OC::$server->getUserSession()->isLoggedIn()) { - $eventDispatcher->addListener('OCA\Files::loadAdditionalScripts', function () { - \OCP\Util::addScript('text', 'files'); - \OCP\Util::addStyle('text', 'icons'); - }); -} - -$eventDispatcher->addListener('OCA\Files_Sharing::loadAdditionalScripts', function () { - \OCP\Util::addScript('text', 'public'); - \OCP\Util::addStyle('text', 'icons'); -}); - $app = \OC::$server->query(Application::class); diff --git a/appinfo/routes.php b/appinfo/routes.php index 4951d865b..167cd01dd 100644 --- a/appinfo/routes.php +++ b/appinfo/routes.php @@ -39,11 +39,12 @@ return [ ['name' => 'PublicSession#push', 'url' => '/public/session/push', 'verb' => 'POST'], ['name' => 'PublicSession#close', 'url' => '/public/session/close', 'verb' => 'GET'], + + ['name' => 'Settings#updateConfig', 'url' => '/settings', 'verb' => 'POST'], ], 'ocs' => [ ['name' => 'Workspace#folder', 'url' => '/workspace', 'verb' => 'GET'], ['name' => 'Workspace#publicFolder', 'url' => '/public/workspace', 'verb' => 'GET'], ['name' => 'Workspace#direct', 'url' => '/workspace/direct', 'verb' => 'POST'], - ] ]; |