Commit 28f43e7b authored by Guillaume Heurtier's avatar Guillaume Heurtier
Browse files

Merge branch 'feat/20314/21.03' into '21.03'

[20314] [Onlyoffice] Compatibilité 6.3.1 avec MC 21.03

See merge request maarch/MaarchCourrier!682
parents b1eb0d99 dec518b0
...@@ -293,10 +293,12 @@ export class EcplOnlyofficeViewerComponent implements OnInit, AfterViewInit, OnD ...@@ -293,10 +293,12 @@ export class EcplOnlyofficeViewerComponent implements OnInit, AfterViewInit, OnD
title: 'Edition', title: 'Edition',
url: `${this.appUrl}${this.params.docUrl}?filename=${this.tmpFilename}`, url: `${this.appUrl}${this.params.docUrl}?filename=${this.tmpFilename}`,
permissions: { permissions: {
comment: false, comment: true,
download: true, download: true,
edit: this.editMode, edit: this.editMode,
print: true, print: true,
deleteCommentAuthorOnly: true,
editCommentAuthorOnly: true,
review: false review: false
} }
}, },
...@@ -307,7 +309,7 @@ export class EcplOnlyofficeViewerComponent implements OnInit, AfterViewInit, OnD ...@@ -307,7 +309,7 @@ export class EcplOnlyofficeViewerComponent implements OnInit, AfterViewInit, OnD
mode: 'edit', mode: 'edit',
customization: { customization: {
chat: false, chat: false,
comments: false, comments: true,
compactToolbar: false, compactToolbar: false,
feedback: false, feedback: false,
forcesave: false, forcesave: false,
...@@ -317,8 +319,8 @@ export class EcplOnlyofficeViewerComponent implements OnInit, AfterViewInit, OnD ...@@ -317,8 +319,8 @@ export class EcplOnlyofficeViewerComponent implements OnInit, AfterViewInit, OnD
zoom: -2, zoom: -2,
}, },
user: { user: {
id: '1', id: this.headerService.user.id.toString(),
name: ' ' name: `${this.headerService.user.firstname} ${this.headerService.user.lastname}`
}, },
}, },
}; };
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment