0
0
Fork 0

Adjust how the PastQuestions is being toggled.

This commit is contained in:
Oliver-Akins 2020-12-15 21:49:11 -07:00
parent 83934e9c19
commit 495533216b

View file

@ -86,7 +86,7 @@
</div> </div>
<button <button
class="past-questions-toggle clickable" class="past-questions-toggle clickable"
@click.self="toggleInsert()" @click.self="visible = !visible"
> >
{{ visible ? `Hide` : `Show` }} Past Questions {{ visible ? `Hide` : `Show` }} Past Questions
</button> </button>
@ -135,19 +135,6 @@ export default {
// TODO -> Send data to socket.io server // TODO -> Send data to socket.io server
console.log(data) console.log(data)
}, },
toggleInsert() {
/**
* When toggling the insert, we want to request new information
* from the server in case there has been an update since the last
* time it was displayed. We only want to do this on appear though,
* never on disappear.
*/
if (!this.visible) {
// TODO -> request questions from server
console.log(`Fetching questions for team`)
};
this.visible = !this.visible;
},
}, },
sockets: { sockets: {
UpdateAnswer(data) { UpdateAnswer(data) {