diff --git a/group_manager/static/group_manager/js/group_manager.js b/group_manager/static/group_manager/js/group_manager.js index 0ff9dd43..e3a6e331 100644 --- a/group_manager/static/group_manager/js/group_manager.js +++ b/group_manager/static/group_manager/js/group_manager.js @@ -302,6 +302,7 @@ function readCsvFile (e) { presentationColumns.forEach(function myFunction (column) { table += '' + column.replace('_', ' ') + '' }) + table += 'status' table += '' newResult.forEach(function myFunction (groupDef, i) { @@ -310,8 +311,7 @@ function readCsvFile (e) { presentationColumns.forEach(function myFunction (column) { table += '' + groupDef[column] + '' }) - table += '' - table += '' + table += '' table += '' }) @@ -389,7 +389,7 @@ async function processImportedRow (row) { response.status_info.forEach(function myFunction (item) { successHtml += item + '
' }) - $('#success-import-' + groupname).html(successHtml) + $('#import-' + groupname).html(successHtml) // Solely added for test automation - splinter. // This was the only way to be able to perform an automated click work on a row. @@ -415,12 +415,12 @@ async function processImportedRow (row) { } else { errorHtml = 'An unknown error occurred.' } - $('#error-import-' + groupname).html(errorHtml) + $('#import-' + groupname).html(errorHtml) } } else { row.addClass('table-danger') $('#processed-indicator-' + groupname).html('') - $('#error-import-' + groupname).html('An unexpected error occurred.') + $('#import-' + groupname).html('An unexpected error occurred.') } // if all is complete reload the left pane with data and setup click capability to open newly added groups in the groupmananger