diff --git a/client/jsFiles/SEAWebClientMain.js b/client/jsFiles/SEAWebClientMain.js index 8af34f6..07cf96d 100644 --- a/client/jsFiles/SEAWebClientMain.js +++ b/client/jsFiles/SEAWebClientMain.js @@ -187,10 +187,10 @@ window.onload = function() { let array_icon_edit = document.getElementsByClassName('icon-edit'); let array_button = document.getElementsByClassName('input-element-button'); if (writePermission == false) { - alertify.prompt( 'WRITE PERMISSION', "Please enter the name of the instrument you want to work on." + alertify.prompt( "WRITE PERMISSION", "Current device: "+ window.device + "

Please confirm the instrument:", "" , function(evt, value) { // User decided to proceed - if (clientTitle.includes(value)) { + if (window.instrument.toUpperCase() === value.toUpperCase()) { writePermission = true; icon_lock_container.innerHTML = ''; for(i = 0; i < array_icon_edit.length; i++) {