Skip to content

Commit 3ac46de

Browse files
authored
Merge pull request #25 from moorscode/reduce-page-flicker
Only show homepage when no room is selected
2 parents e7ce546 + 9f5f68b commit 3ac46de

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

html/index.html

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,8 @@
1717
<section class="poker">
1818
<h1>Pum Scroker</h1>
1919

20-
<section v-if="loading">
21-
Connecting to the server...
22-
</section>
23-
2420
<section v-if="!loading">
25-
<section v-if="!activePoker">
21+
<section v-if="homepage">
2622
<p>Welcome to Pum Scroker!</p>
2723
<p>This tool was created for scrum-teams to have a digital place where they can do their refinement.
2824
As many teams are working remotely due to the global COVID-19 situation.
@@ -35,10 +31,9 @@ <h1>Pum Scroker</h1>
3531
</form>
3632

3733
<p><em>Suggestion: Prefix the room with your company name to ensure you are not competing for a room.</em></p>
38-
3934
</section>
4035

41-
<div class="pokerMain" v-if="activePoker">
36+
<div class="pokerMain" v-if="!homepage">
4237
<form class="username" :class="[!nickname ? 'hover' : '']">
4338
<span><i class="fas fa-signature"></i> Nickname:</span>
4439
<input type="text" v-model="nickname"/>
@@ -149,7 +144,7 @@ <h3 @click="toggleHistory()">Story history</h3>
149144
</section>
150145
</section>
151146

152-
<section class="poker" v-if="!activePoker">
147+
<section class="poker" v-if="homepage">
153148
<h2>Features</h2>
154149
<h3>Voting</h3>
155150
<p>
@@ -364,6 +359,9 @@ <h3>Story history</h3>
364359
},
365360
},
366361
computed: {
362+
homepage() {
363+
return !this.activePoker && !this.joinPoker
364+
},
367365
unvotedNames () {
368366
const result = this.names
369367
for (const name of this.votedNames) {

0 commit comments

Comments
 (0)