<div class="progress"><divclass="indeterminate"/></div>if (source_names_list.length == 0)
{
// want progress bar to appear
}
if (source_names_list.length > 0)
{
// want the progress bar to disappear
}
var source_names_list = []
if (source_names_list.length == 0)
{
// want progress bar to appeardocument.querySelector('.progress').style.display = 'inheret'
}
if (source_names_list.length > 0)
{
// want the progress bar to disappeardocument.querySelector('.progress').style.display = 'none'
}