stable

Clone or download

Read-only

feat: Add (virtually) project in the allowed projects

Go to siteadmin Β» ONLYOFFICE Open the restrict modal of a retricted server. Search for a project and click on `Allow project` button:Β the project should be added in the table. If an error occurred during the fetch of project information, then an error message is displayed. We are forced to make a REST call because project autocompleter result is a string "public name (shortname)" and we have to retrieve other information of the project. The added projects are not saved in the database, it will be part of a dedicated contribution. Part of story #29981: restrict an OnlyOffice server to some projects only Change-Id: I057285f9ce414ee7991e7e239b7023995e1ee93d

Modified Files

Name
M plugins/onlyoffice/scripts/siteadmin/package.json +4 βˆ’1 Go to diff View file
M plugins/onlyoffice/scripts/siteadmin/pnpm-lock.yaml +10 βˆ’0 Go to diff View file
M plugins/onlyoffice/scripts/siteadmin/po/fr_FR.po +3 βˆ’0 Go to diff View file
M plugins/onlyoffice/scripts/siteadmin/src/components/Servers/Restrict/AllowedProjectsTable.vue +31 βˆ’20 Go to diff View file
A plugins/onlyoffice/scripts/siteadmin/src/components/Servers/Restrict/ProjectAllower.test.ts +181 βˆ’0 Go to diff View file
A plugins/onlyoffice/scripts/siteadmin/src/components/Servers/Restrict/ProjectAllower.vue +121 βˆ’0 Go to diff View file
D plugins/onlyoffice/scripts/siteadmin/src/components/Servers/Restrict/ProjectAutocompleter.vue +0 βˆ’42 Go to diff View file
A plugins/onlyoffice/scripts/siteadmin/src/helpers/extract-projectname-from-autocompleter-result.test.ts +30 βˆ’0 Go to diff View file
A plugins/onlyoffice/scripts/siteadmin/src/helpers/extract-projectname-from-autocompleter-result.ts +24 βˆ’0 Go to diff View file
M plugins/onlyoffice/scripts/siteadmin/src/type.ts +6 βˆ’0 Go to diff View file