This is an automated email from the ASF dual-hosted git repository.

jfthomps pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/vcl.git


The following commit(s) were added to refs/heads/develop by this push:
     new 15f80b17 vm.js: modified newProfile: change from inline error message 
to using what is passed in from AJAX response
15f80b17 is described below

commit 15f80b179ed89a51beb8f0a6c8717544d97052e4
Author: Josh Thompson <jftho...@ncsu.edu>
AuthorDate: Fri Apr 5 14:33:03 2024 -0400

    vm.js: modified newProfile: change from inline error message to using what 
is passed in from AJAX response
---
 web/js/vm.js | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/web/js/vm.js b/web/js/vm.js
index b56313b5..31dfcd57 100644
--- a/web/js/vm.js
+++ b/web/js/vm.js
@@ -586,8 +586,7 @@ function newProfile(cont) {
 function newProfileCB(data, ioArgs) {
        if(data.items.failed) {
                document.body.style.cursor = 'default';
-               dojo.byId('nperrormsg').innerHTML =
-                  'A profile with this name already exists';
+               dojo.byId('nperrormsg').innerHTML = data.items.errmsg;
                return;
        }
        dijit.byId('messages').hide();

Reply via email to