mherger wrote:
>
> I don't know how to debug this part of the code... any hint?
This line
Code:
--------------------
<v-list-tile v-if="item.type=='text' && ( (item.style &&
item.style.startsWith('item') && item.style!='itemNoAction') || (!item.style &&
item.actions && item.actions.go) )" avatar @click="click(item, index, $event,
true)" v-bind:class="{'error-text': item.id==='error'}">
--------------------
is part of a vue template. It controls the conditional display of an
item. I think that the "if" above is not being met correctly. Basically
this states "if the item is of type text AND (item.style!='itemNoAction'
OR (no item style and item has a go action))" then this HMTL element
should appear. If it did appear, its call to click() is passing 'true'
for allowTextClick. Seeing as you are seeing a false being passed, the
"if" condition must be failing. Is it possible the item has a style?
What you could do is add:
Code:
--------------------
console.log("ITEM", JSON.stringify(item, null, 2));
--------------------
to the click() function - this will dump the item object as a JSON
string, then you can see which part of the "if" is failing.
p.s. I've also noticed the code needs to handle "nextWindow=refresh",
which I'll add later. (I think I should also show a notification in
these cases where a single text entry is returned - so that some
feedback is given to the user). Anyway, these I'll do later...
------------------------------------------------------------------------
cpd73's Profile: http://forums.slimdevices.com/member.php?userid=66686
View this thread: http://forums.slimdevices.com/showthread.php?t=109624
_______________________________________________
plugins mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/plugins