Skip to content

Commit

Permalink
Stop spinner and hide concept mappings area if no concept mapping pro…
Browse files Browse the repository at this point in the history
…perties were returned
  • Loading branch information
kinow committed Mar 9, 2019
1 parent 5d75ca9 commit 6bf1852
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions resource/js/scripts.js
Original file line number Diff line number Diff line change
Expand Up @@ -414,10 +414,17 @@ function loadMappingProperties(concept, contentLang, $htmlElement, conceptData)
}
}

var template = renderPropertyMappings(concept, contentLang, conceptProperties);
if (conceptProperties.length > 0) {
var template = renderPropertyMappings(concept, contentLang, conceptProperties);

$htmlElement.empty();
$htmlElement.append(template);
} else {
// No concept properties found
$htmlElement.empty();
$htmlElement.addClass("hidden");
}

$htmlElement.empty();
$htmlElement.append(template);

},
error: function(data) {
Expand Down

0 comments on commit 6bf1852

Please sign in to comment.