stable

Clone or download

Read-only

feat: Reduce nb click when adding/removing projects

Now adding or removing a project submit the form, no need for another click. This aligns the behavior with other restrict-resource-access apps in Tuleap (plugins administration, git mirrors, …). We need to explain why moving or removing a project is dangerous. Therefore: * Before adding a project to a server a confirmation modal is displayed if it was already allowed to use another server. * Before removing a bunch of projects from a server a confirmation modal is displayed. Part of story #29981: restrict an OnlyOffice server to some projects only Change-Id: I6686b7e154e625901ddbce8cd819c03f76a100b8

Modified Files

Name
M plugins/onlyoffice/include/Administration/OnlyOfficeRestrictAdminSettingsController.php +40 −12 Go to diff View file
M plugins/onlyoffice/include/onlyofficePlugin.php +4 −1 Go to diff View file
M plugins/onlyoffice/scripts/siteadmin/po/fr_FR.po +31 −29 Go to diff View file
M plugins/onlyoffice/scripts/siteadmin/src/components/Servers/Restrict/AllowedProjectsTable.test.ts +4 −218 Go to diff View file
M plugins/onlyoffice/scripts/siteadmin/src/components/Servers/Restrict/AllowedProjectsTable.vue +23 −106 Go to diff View file
A plugins/onlyoffice/scripts/siteadmin/src/components/Servers/Restrict/MoveProjectConfirmationModal.vue +116 −0 Go to diff View file
M plugins/onlyoffice/scripts/siteadmin/src/components/Servers/Restrict/ProjectAllower.test.ts +76 −30 Go to diff View file
M plugins/onlyoffice/scripts/siteadmin/src/components/Servers/Restrict/ProjectAllower.vue +80 −9 Go to diff View file
A plugins/onlyoffice/scripts/siteadmin/src/components/Servers/Restrict/RemoveProjectConfirmationModal.vue +96 −0 Go to diff View file
D plugins/onlyoffice/scripts/siteadmin/src/components/Servers/Restrict/RestrictServer.test.ts +0 −95 Go to diff View file
M plugins/onlyoffice/scripts/siteadmin/src/components/Servers/Restrict/RestrictServer.vue +9 −93 Go to diff View file
M plugins/onlyoffice/tests/unit/Administration/OnlyOfficeRestrictAdminSettingsControllerTest.php +109 −14 Go to diff View file
M plugins/onlyoffice/tests/unit/Stubs/IRestrictDocumentServerStub.php +20 −4 Go to diff View file