1
0
Fork 0

fix(frio): "Data" move header in template w/ l10n

fix: #11581
This commit is contained in:
Alessandro Lorenzi 2022-07-28 18:06:31 +02:00
parent f29d9be574
commit 94cf4fa37a
No known key found for this signature in database
GPG key ID: F1D4E1C7FF1209BF
2 changed files with 8 additions and 2 deletions

View file

@ -64,10 +64,16 @@ $(function(){
});
var elm = $modal.find(".event-data")[0];
const event_data_header = $modal.find(".event-data-header")[0];
// Cleanup event data
event_data_header.hidden = true;
elm.innerHTML = "";
// Fill out event data
var data = element.dataset.data;
if (data !== "") {
elm.innerHTML = "<h3>Data</h3>";
event_data_header.hidden = false;
data = JSON.parse(data);
elm.innerHTML += recursive_details("", data);
}

View file

@ -121,7 +121,7 @@
</tbody>
</table>
<h3 class="header-event-data">{{$l10n.Data}}</h3>
<div class="event-source">
</div>
<div class="event-data">