Put pages.meet black until its loaded

This commit is contained in:
Niko 2022-02-16 19:07:09 +01:00
parent 1457cfcf56
commit dcc36ae91d
1 changed files with 2 additions and 2 deletions

View File

@ -1,13 +1,13 @@
app.pages.meet = {
load: function(args) {
const dom = document.querySelector('#page-meet #content');
dom.innerHTML = '';
document.querySelector('#page-meet').removeAttribute('style');
http.get('/api/v1/feed/meet', {}, function(json) {
if (json === undefined) return;
app.template.loadMany(['meet.item','meet.actions'], function(_) {
var _;
_ = function () {
const dom = document.querySelector('#page-meet #content');
dom.innerHTML = '';
for (var i = 0; i < json.length; i++) {
var tpl = app.template.fill(json[i], app.template.get('meet.item'),
function (k,v) {