# Dialog not appering in DB2, only the page is faded

**URL:** <https://discourse.nodered.org/t/dialog-not-appering-in-db2-only-the-page-is-faded/85685>\
**Category:** Dashboard\
**Tags:** dashboard-2\
**Created:** [19 February 2024 22:38 UTC](https://discourse.nodered.org/t/dialog-not-appering-in-db2-only-the-page-is-faded/85685 "2024-02-19T22:38:05Z")\
**Posts on this page:** 1\
**Showing post:** 38

<div class="post-metadata">

**Author:** ![nygma2004](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/nygma2004/32/1308_2.png) [@nygma2004](https://discourse.nodered.org/u/nygma2004)\
**Post date:** [6 March 2024 21:41 UTC](https://discourse.nodered.org/t/dialog-not-appering-in-db2-only-the-page-is-faded/85685/38 "2024-03-06T21:41:55Z")

</div>

Please ignore again. After posting this, I started reading the discussion here: [VueJs - where to store my data](https://discourse.nodered.org/t/vuejs-where-to-store-my-data/85939)  
And realized computed methods work the other way around, not how I wanted to use them, I need a watch method... changing the code now...

**[30 minutes later]**

OK, sorry, lost the plot again.  
so I bing the combovox to a value using `v-model`:

```auto
            <v-combobox label="Presets"
              :items="['Today', 'Yesterday', 'Last 7 days', 'This week', 'Last Week', 'This Month', 'Last Month']"
              v-model="preset"></v-combobox>

```

And I include the this `preset` value in the data model:

```auto
  data() {
    return {
        dialogData:null,
        fromdatevalue: Date.now(),
        todatevalue: Date.now(),
        preset: ''
    }

```

And I create a `watch` function to handle when this is getting changed:

```auto
      preset: function() {
        console.log(preset);
        var today = new Date();
        this.fromdatevalue = today.toISOString().split('T')[0];
        this.todatevalue = new Date(today.getTime() + 24*60*60*1000).toISOString().split('T')[0];
      }

```

But how do I get what option was selected in the combobox?

---

_[View the full topic](https://discourse.nodered.org/t/dialog-not-appering-in-db2-only-the-page-is-faded/85685)._
