Adjust how the PastQuestions is being toggled.
This commit is contained in:
parent
83934e9c19
commit
495533216b
1 changed files with 1 additions and 14 deletions
|
|
@ -86,7 +86,7 @@
|
|||
</div>
|
||||
<button
|
||||
class="past-questions-toggle clickable"
|
||||
@click.self="toggleInsert()"
|
||||
@click.self="visible = !visible"
|
||||
>
|
||||
{{ visible ? `Hide` : `Show` }} Past Questions
|
||||
</button>
|
||||
|
|
@ -135,19 +135,6 @@ export default {
|
|||
// TODO -> Send data to socket.io server
|
||||
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: {
|
||||
UpdateAnswer(data) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue