Skip to content

Commit 9dc748a

Browse files
author
Trent Willis
committed
Show message to upload data when no data
1 parent d407b78 commit 9dc748a

File tree

2 files changed

+24
-1
lines changed

2 files changed

+24
-1
lines changed

app/styles/app.css

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,12 @@ body {
99
z-index: 1;
1010
}
1111

12+
.upload-data-banner {
13+
position: fixed;
14+
top: 0;
15+
width: 100%;
16+
}
17+
1218
.node text {
1319
font: 10px sans-serif;
1420
}

app/templates/application.hbs

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,4 +60,21 @@
6060
<button class="modal-close" {{action (action (mut showUploadModal) false)}}></button>
6161
</div>
6262

63-
{{outlet}}
63+
{{#if graph.data}}
64+
{{outlet}}
65+
{{else}}
66+
<section class="upload-data-banner hero is-fullheight is-light">
67+
<div class="hero-body">
68+
<div class="container has-text-centered">
69+
<a href="#" {{action (action (mut showUploadModal) true)}}>
70+
<h1 class="title">
71+
<i class="fa fa-exclamation-triangle"></i>
72+
</h1>
73+
<h2 class="subtitle">
74+
Please upload data.
75+
</h2>
76+
</a>
77+
</div>
78+
</div>
79+
</section>
80+
{{/if}}

0 commit comments

Comments
 (0)