Dialog plugin doesnt stop the code flow
-
I am trying to open a dialog to show options (pieces to promote in chess) but this doesnt stop the code to wait the answer.
if(isPromotion){ showDialog() // it runs the makeMove anyway, dont wait the answer from dialog } makeMove()
Sorry for this newbye question, but I am stuck on this for days
-
@larskuerten look at this forum answer https://forum.quasar-framework.org/topic/5414/dialog-plugin-with-promise/4, don’t have to make it a mixin, just async await the dialog call.
-
I will give it a try, thank you, merry christmas