Fixed bug with clear search

This commit is contained in:
2023-08-19 17:13:23 +02:00
parent b6f94794fe
commit 62c45c9a8c
2 changed files with 5 additions and 3 deletions

5
.idea/codeStyles/codeStyleConfig.xml generated Normal file
View File

@@ -0,0 +1,5 @@
<component name="ProjectCodeStyleConfiguration">
<state>
<option name="PREFERRED_PROJECT_CODE_STYLE" value="Default" />
</state>
</component>

View File

@@ -29,7 +29,6 @@
<script> <script>
import { mapState } from "vuex"; import { mapState } from "vuex";
import arne from "../../arne.js"; import arne from "../../arne.js";
import InspirationWindow from "../items/InspirationWindow.vue";
export default { export default {
data() { data() {
return { return {
@@ -52,7 +51,6 @@ export default {
methods: { methods: {
async randomizeTrack() { async randomizeTrack() {
console.log("Randomizing track"); console.log("Randomizing track");
InspirationWindow.methods.clearSearch();
/* Prevents anyone from changing the winning score after the round has started */ /* Prevents anyone from changing the winning score after the round has started */
if (this.roundStarted === false) { if (this.roundStarted === false) {
this.$store.dispatch("setRoundStarted", true); this.$store.dispatch("setRoundStarted", true);
@@ -76,7 +74,6 @@ export default {
} }
//Update the source file for the media player (binded property to Audio tag in the template) //Update the source file for the media player (binded property to Audio tag in the template)
this.currentTrackSrcFile = window.URL.createObjectURL(copyOfPlaylist[0]); this.currentTrackSrcFile = window.URL.createObjectURL(copyOfPlaylist[0]);
/* this.$nextTick(() => {}); */
if (!trackAddedToQue) { if (!trackAddedToQue) {
if (this.addPlayed) { if (this.addPlayed) {
await this.APIaddPlayed(); await this.APIaddPlayed();