File tree 3 files changed +9
-4
lines changed
3 files changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -202,6 +202,8 @@ module.exports = function () {
202
202
### Others
203
203
204
204
- ` enablePDFConversion ` : Set to ` true ` to enable docx/odt to pdf conversion. Make sure the backend is enabled aswell.
205
+ - ` enableWebDAV ` : Set to ` true ` to enable docx/xlsx editing with WebDAV. Make sure the backend is enabled aswell.
206
+ - ` allowedWebDAVMimeTypes ` : Sets the allowed editable mime types (default: docx, xlsx). Make sure the list is the same as in the backend.
205
207
- ` namespace ` : Set to API namespace
206
208
- ` zipDownloadHost ` : Set if the ZIP download is different
207
209
- ` zipDownloadNamespace ` : Set if the ZIP download is namespaced
Original file line number Diff line number Diff line change @@ -33,10 +33,9 @@ export default class SingleDocumentDetailsComponent extends Component {
33
33
}
34
34
35
35
get isWordProcessingFormat ( ) {
36
- return [
37
- "application/vnd.oasis.opendocument.text" ,
38
- "application/vnd.openxmlformats-officedocument.wordprocessingml.document" ,
39
- ] . includes ( this . args . document . latestFile ?. value ?. mimeType ) ;
36
+ return this . config . allowedWebDAVMimeTypes . includes (
37
+ this . args . document . latestFile ?. value ?. mimeType ,
38
+ ) ;
40
39
}
41
40
42
41
get displayWebDAVButton ( ) {
Original file line number Diff line number Diff line change @@ -8,6 +8,10 @@ export default class AlexandriaConfigService extends Service {
8
8
9
9
enablePDFConversion = false ;
10
10
enableWebDAV = false ;
11
+ allowedWebDAVMimeTypes = [
12
+ "application/vnd.openxmlformats-officedocument.wordprocessingml.document" ,
13
+ "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet" ,
14
+ ] ;
11
15
12
16
markIcons = { } ;
13
17
You can’t perform that action at this time.
0 commit comments