Change loading animation

This commit is contained in:
Patrick Jentsch 2021-01-11 14:46:19 +01:00
parent 581fd5bcb5
commit 84ae5fd22a

View File

@ -15,10 +15,28 @@ class RessourceList {
this.user = nopaque.appClient.users.self; this.user = nopaque.appClient.users.self;
} }
this.list = new List(listElement, {...RessourceList.options, ...options}); this.list = new List(listElement, {...RessourceList.options, ...options});
this.list.list.innerHTML = `<tr class="show-if-only-child"> this.list.list.innerHTML = `<tr>
<td colspan="3"> <td class="row" colspan="100%">
<span class="card-title"><i class="left material-icons" style="font-size: inherit;">file_download</i>Nothing here...</span> <div class="col s12">&nbsp;</div>
<p>No ressource available (yet).</p> <div class="col s3 m2 xl1">
<div class="preloader-wrapper active">
<div class="spinner-layer spinner-green-only">
<div class="circle-clipper left">
<div class="circle"></div>
</div>
<div class="gap-patch">
<div class="circle"></div>
</div>
<div class="circle-clipper right">
<div class="circle"></div>
</div>
</div>
</div>
</div>
<div class="col s9 m6 xl5">
<span class="card-title">Preparing data...</span>
<p>No ressource available (yet).</p>
</div>
</td> </td>
</tr>`; </tr>`;
} }