stable

Clone or download

Read-only

The quota display should take file field permissions into account

Part of story #13453: finish drag'n drop images in tracker text areas This prepares the logic that will enable or disable uploading in CKEditors. With this patch: - When you create an artifact and you don't have the "submit" permission on any file field, the allowed temporary file quota (at the bottom left of the modal) won't be shown - When you update an artifact and you don't have the "update" permission on any file field, the allowed file quota won't be shown. No other functional change expected, you can still upload files for which you have permission. Change-Id: I25666fc575f08765b571fb9939ebc7296950e93d

Modified Files

Name
M plugins/tracker/www/scripts/angular-artifact-modal/src/index.spec.js +1 −0 Go to diff View file
M plugins/tracker/www/scripts/angular-artifact-modal/src/tuleap-artifact-modal-controller.js +2 −7 Go to diff View file
A plugins/tracker/www/scripts/angular-artifact-modal/src/tuleap-artifact-modal-fields/disabled-field-detector.js +25 −0 Go to diff View file
A plugins/tracker/www/scripts/angular-artifact-modal/src/tuleap-artifact-modal-fields/disabled-field-detector.spec.js +67 −0 Go to diff View file
M plugins/tracker/www/scripts/angular-artifact-modal/src/tuleap-artifact-modal-fields/file-field/file-field-detector.js +28 −5 Go to diff View file
M plugins/tracker/www/scripts/angular-artifact-modal/src/tuleap-artifact-modal-fields/file-field/file-field-detector.spec.js +59 −5 Go to diff View file
M plugins/tracker/www/scripts/angular-artifact-modal/src/tuleap-artifact-modal-fields/text-field/TextField.spec.js +10 −4 Go to diff View file
M plugins/tracker/www/scripts/angular-artifact-modal/src/tuleap-artifact-modal-fields/text-field/TextField.vue +4 −1 Go to diff View file
M plugins/tracker/www/scripts/angular-artifact-modal/src/tuleap-artifact-modal.tpl.html +0 −1 Go to diff View file
M plugins/tracker/www/scripts/constants/fields-constants.js +21 −29 Go to diff View file