diff --git a/module/aiapp/js/models.ui.js b/module/aiapp/js/models.ui.js index 8a41fba93b..356173cb41 100644 --- a/module/aiapp/js/models.ui.js +++ b/module/aiapp/js/models.ui.js @@ -21,8 +21,9 @@ window.initModelList = async function() {name: 'index', title: 'ID', type: 'id', sortType: false}, {name: 'id', title: modelLang}, {name: 'actions', title: actionLang, width: 90, type: 'actions', actions: ['converse'], actionsMap: { - // TODO: The conversation page has not been developed yet. - converse: {text: converseLang}, + converse: {text: converseLang, onClick: (_event, info) => { + loadPage($.createLink('aiapp', 'conversation', `chat=NEW¶ms=${btoa(JSON.stringify({model: info.item.data.row}))}`)); + }}, }}, ]; $('#modelsList').zui('dtable').render({cols, data: models});