fix/no assets message
This commit is contained in:
1 file changed
+2
-5
@@ -171,12 +171,9 @@
|
|||||||
<!-- list each asset and create hidden popup modal for view/edit -->
|
<!-- list each asset and create hidden popup modal for view/edit -->
|
||||||
<section class="mt-6">
|
<section class="mt-6">
|
||||||
<% if (assets.length == 0) { %>
|
<% if (assets.length == 0) { %>
|
||||||
<button
|
<div class="max-w-md mx-auto mb-10 rounded-lg shadow-md text-white font-bold bg-red-400 py-4 text-center">
|
||||||
class="max-w-md mx-auto mb-10 rounded-lg shadow-md text-white font-bold bg-red-400 py-4 text-center"
|
|
||||||
onclick="document.getElementById('create-asset-modal').showModal()"
|
|
||||||
>
|
|
||||||
You have no assets, create a new asset.
|
You have no assets, create a new asset.
|
||||||
</button>
|
</div>
|
||||||
<% } %>
|
<% } %>
|
||||||
<% assets.forEach((asset) => { %>
|
<% assets.forEach((asset) => { %>
|
||||||
<!-- Clickable asset list item -->
|
<!-- Clickable asset list item -->
|
||||||
|
|||||||
Reference in new issue
Block a user