viewer: unload upstream
parent
e5b804375f
commit
6d65db6861
|
@ -4,7 +4,6 @@ namespace OCA\Memories\Controller;
|
||||||
|
|
||||||
use OCA\Files\Event\LoadSidebar;
|
use OCA\Files\Event\LoadSidebar;
|
||||||
use OCA\Memories\AppInfo\Application;
|
use OCA\Memories\AppInfo\Application;
|
||||||
use OCA\Viewer\Event\LoadViewer;
|
|
||||||
use OCP\App\IAppManager;
|
use OCP\App\IAppManager;
|
||||||
use OCP\AppFramework\Controller;
|
use OCP\AppFramework\Controller;
|
||||||
use OCP\AppFramework\Http\ContentSecurityPolicy;
|
use OCP\AppFramework\Http\ContentSecurityPolicy;
|
||||||
|
@ -62,7 +61,6 @@ class PageController extends Controller
|
||||||
// Scripts
|
// Scripts
|
||||||
Util::addScript($this->appName, 'memories-main');
|
Util::addScript($this->appName, 'memories-main');
|
||||||
$this->eventDispatcher->dispatchTyped(new LoadSidebar());
|
$this->eventDispatcher->dispatchTyped(new LoadSidebar());
|
||||||
$this->eventDispatcher->dispatchTyped(new LoadViewer());
|
|
||||||
|
|
||||||
// Configuration
|
// Configuration
|
||||||
$uid = $user->getUid();
|
$uid = $user->getUid();
|
||||||
|
@ -114,7 +112,6 @@ class PageController extends Controller
|
||||||
// Scripts
|
// Scripts
|
||||||
Util::addScript($this->appName, 'memories-main');
|
Util::addScript($this->appName, 'memories-main');
|
||||||
$this->eventDispatcher->dispatchTyped(new LoadSidebar());
|
$this->eventDispatcher->dispatchTyped(new LoadSidebar());
|
||||||
$this->eventDispatcher->dispatchTyped(new LoadViewer());
|
|
||||||
|
|
||||||
// App version
|
// App version
|
||||||
$this->initialState->provideInitialState('version', $this->appManager->getAppInfo('memories')['version']);
|
$this->initialState->provideInitialState('version', $this->appManager->getAppInfo('memories')['version']);
|
||||||
|
|
Loading…
Reference in New Issue