No More Posting New Topics!

If you have a question or an issue, please start a thread in our Github Discussions Forum.
This forum is closed for new threads/ topics.

Navigation

    Quasar Framework

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

    Dialog plugin doesnt stop the code flow

    Help
    2
    3
    162
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • larskuerten
      larskuerten last edited by

      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

      metalsadman 1 Reply Last reply Reply Quote 0
      • metalsadman
        metalsadman @larskuerten last edited by metalsadman

        @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.

        1 Reply Last reply Reply Quote 0
        • larskuerten
          larskuerten last edited by

          I will give it a try, thank you, merry christmas

          1 Reply Last reply Reply Quote 0
          • First post
            Last post