stable

Clone or download

Read-only

Select and save icon in edit service modal

Part of story #13566 associate a custom icon to external services How to test: As project admin or site admin, when you edit a custom service (scope !== system), then you can choose an icon among all the fontawesome icons. The preview shows the icon. When you submit, the icon is saved and will be shown in the sidebar. Change-Id: I8e89e29e28c5f8cfcf53fda7f27cb00cf7c1489c

Modified Files

Name
M site-content/fr_FR/LC_MESSAGES/tuleap-core.po +6 −1 Go to diff View file
M src/common/Project/Service.class.php +6 −6 Go to diff View file
A src/common/Project/Service/ServiceIconValidator.php +636 −0 Go to diff View file
M src/common/Project/Service/ServiceJSONPresenter.php +4 −0 Go to diff View file
M src/common/Project/Service/ServicePOSTData.php +12 −4 Go to diff View file
M src/common/Project/Service/ServicePOSTDataBuilder.php +18 −0 Go to diff View file
M src/common/Project/Service/ServicePresenter.php +3 −2 Go to diff View file
M src/common/Project/Service/ServiceUpdator.php +2 −1 Go to diff View file
M src/common/Project/Service/ServicesPresenter.php +8 −0 Go to diff View file
M src/common/dao/ServiceDao.class.php +3 −1 Go to diff View file
M src/templates/project/admin/services/services.mustache +1 −0 Go to diff View file
M src/www/scripts/project/admin/services/po/fr.po +6 −0 Go to diff View file
M src/www/scripts/project/admin/services/src/components/BaseProjectAdminEditModal.vue +6 −2 Go to diff View file
M src/www/scripts/project/admin/services/src/components/BaseSiteAdminEditModal.vue +6 −2 Go to diff View file
A src/www/scripts/project/admin/services/src/components/IconSelector.vue +101 −0 Go to diff View file
M src/www/scripts/project/admin/services/src/components/ProjectDefinedService.vue +8 −0 Go to diff View file
M src/www/scripts/project/admin/services/src/components/SidebarPreviewer.vue +4 −1 Go to diff View file
M src/www/scripts/project/admin/services/src/components/edit-modal-mixin.js +5 −0 Go to diff View file
M src/www/scripts/project/admin/services/src/edit-modal-initializer.js +9 −2 Go to diff View file
M src/www/themes/BurningParrot/css/includes/_sidebar-collapsed.scss +3 −3 Go to diff View file
M src/www/themes/BurningParrot/css/includes/project-admin/_services.scss +13 −0 Go to diff View file
A tests/phpunit/common/Project/Service/ServicePOSTDataBuilderTest.php +279 −0 Go to diff View file