aboutsummaryrefslogtreecommitdiffstats
path: root/archiva-modules/archiva-web/archiva-webapp/src/main/webapp/js/templates
diff options
context:
space:
mode:
authorMartin Stockhammer <martin_s@apache.org>2019-03-03 00:11:52 +0100
committerMartin Stockhammer <martin_s@apache.org>2019-05-03 20:48:31 +0200
commit6160966fa09e3663e0eaa0e5695c08af35c29bbf (patch)
tree8abcf41ad94c06bc721c18315a686296fb804dc8 /archiva-modules/archiva-web/archiva-webapp/src/main/webapp/js/templates
parent4fe9a38bea79681223446646002c00ed72d1debb (diff)
downloadarchiva-6160966fa09e3663e0eaa0e5695c08af35c29bbf.tar.gz
archiva-6160966fa09e3663e0eaa0e5695c08af35c29bbf.zip
Adding error handling for new validations. Fix web ui tests.
(cherry picked from commit d4be8968cfb9910f335009e1538292671aa67853)
Diffstat (limited to 'archiva-modules/archiva-web/archiva-webapp/src/main/webapp/js/templates')
-rw-r--r--archiva-modules/archiva-web/archiva-webapp/src/main/webapp/js/templates/archiva/general-admin.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/archiva-modules/archiva-web/archiva-webapp/src/main/webapp/js/templates/archiva/general-admin.html b/archiva-modules/archiva-web/archiva-webapp/src/main/webapp/js/templates/archiva/general-admin.html
index b377fbb96..dc6e7672c 100644
--- a/archiva-modules/archiva-web/archiva-webapp/src/main/webapp/js/templates/archiva/general-admin.html
+++ b/archiva-modules/archiva-web/archiva-webapp/src/main/webapp/js/templates/archiva/general-admin.html
@@ -653,7 +653,7 @@
{% if (file.error) { %}
<td class="error" colspan="2">
<span class="label label-important">{%=$.i18n.prop('fileupload.error')%}</span>
- {%=$.i18n.prop('fileupload.errors.'+[file.error]) || file.error%}
+ {%=$.i18n.prop('fileupload.errors.'+file.error.replace(/\s+/,'_')) || file.error%}
</td>
{% } else if (o.files.valid && !i) { %}
<td>
@@ -692,7 +692,7 @@
{% if (file.error) { %}
<td class="error" colspan="2">
<span class="label label-important">{%=$.i18n.prop('fileupload.error')%}</span>
- {%=$.i18n.prop('fileupload.errors.'+[file.error]) || file.error%}
+ {%=$.i18n.prop('fileupload.errors.'+file.error.replace(/\s+/,'_')) || file.error%}
</td>
{% } else { %}
<td colspan="2"></td>