Skip to content
Snippets Groups Projects
Commit d408d1f7 authored by Swen Vermeul's avatar Swen Vermeul
Browse files

added label-warning when connecting to openBIS instance

parent a36a6ec5
No related branches found
No related tags found
No related merge requests found
...@@ -91,12 +91,15 @@ define( ...@@ -91,12 +91,15 @@ define(
password.value = connection.password password.value = connection.password
password.setAttribute("form", connection.name) password.setAttribute("form", connection.name)
// Username / Password form // Username / Password form
let pwform = document.createElement("FORM") let pwform = document.createElement("FORM")
pwform.id = connection.name pwform.id = connection.name
pwform.onsubmit = function (event) { pwform.onsubmit = function (event) {
let form_data = new FormData(this) let form_data = new FormData(this)
let status_badge = document.getElementById(this.id + "-badge") let status_badge = document.getElementById(this.id + "-badge")
status_badge.textContent = "connecting..."
status_badge.className = "label label-warning"
connections.connect(env, this.id, connections.connect(env, this.id,
form_data.get("username"), form_data.get("password") form_data.get("username"), form_data.get("password")
) )
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment