nextcloud / assistant

✨ Nextcloud Assistant
GNU Affero General Public License v3.0
34 stars 6 forks source link

fix(ContextChat): update inputs on selective context checkbox change #58

Closed kyteinsky closed 7 months ago

kyteinsky commented 7 months ago

@julien-nc Not sure if this is the best approach but it fixes the issue

julien-nc commented 7 months ago

If you wanna do it in a similar fashion than the other task types, the change/checked/update events on the sccEnabled checkbox and <ContextChatInputForm> could call onUpdateContextChat.

Also, I think onUpdateContextChat should be called in the selectedTaskTypeId watch method when context chat is selected.

kyteinsky commented 7 months ago

<ContextChatInputForm> could call onUpdateContextChat

sccEnabled is in the Assistant form itself, it removes/mounts the ContextChatInputForm externally, added update there.
Thanks!