diff options
author | Julius Härtl <jus@bitgrid.net> | 2020-03-25 22:52:38 +0300 |
---|---|---|
committer | Julius Härtl <jus@bitgrid.net> | 2020-03-25 23:38:26 +0300 |
commit | ffb417c4bfc963f2832f8d5a926be1ccb6d3ba47 (patch) | |
tree | ed3afeb5c380a7c427141e18bf55680a26e6227f /src | |
parent | 7cb70383c51accd088460cb5b3485e52d0e3bc0f (diff) |
Expose workspace_available on public shares
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'src')
-rw-r--r-- | src/public.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/public.js b/src/public.js index a91e1746f..785a80ac9 100644 --- a/src/public.js +++ b/src/public.js @@ -5,6 +5,7 @@ import { registerFileCreate, } from './helpers/files' import { openMimetypes } from './helpers/mime' +import { loadState } from '@nextcloud/initial-state' __webpack_nonce__ = btoa(OC.requestToken) // eslint-disable-line __webpack_public_path__ = OC.linkTo('text', 'js/') // eslint-disable-line @@ -50,5 +51,5 @@ documentReady(() => { }) OCA.Text = { - RichWorkspaceEnabled: false, + RichWorkspaceEnabled: loadState('text', 'workspace_available'), } |