Changeset 0.28.3.1 (#188)
This commit is contained in:
@@ -71,11 +71,11 @@ const ChannelModels = {
|
||||
const html = this._roster.map(m => `
|
||||
<span class="ch-model-pill${m.is_default ? ' ch-model-default' : ''}"
|
||||
data-model-id="${esc(m.id)}" title="${esc(m.model_id)}">
|
||||
<span class="ch-model-pill-name" onclick="ChannelModels.setDefault('${esc(m.id)}')">${esc(m.display_name)}</span>
|
||||
<button class="ch-model-pill-remove" onclick="ChannelModels.remove('${esc(m.id)}')" title="Remove model">✕</button>
|
||||
<span class="ch-model-pill-name" data-action="ChannelModels.setDefault" data-args='${JSON.stringify([esc(m.id)])}'">${esc(m.display_name)}</span>
|
||||
<button class="ch-model-pill-remove" data-action="ChannelModels.remove" data-args='${JSON.stringify([esc(m.id)])}'" title="Remove model">✕</button>
|
||||
</span>
|
||||
`).join('') + `
|
||||
<button class="ch-model-add-btn" onclick="ChannelModels.showAddDialog()" title="Add model to channel">+ Add</button>
|
||||
<button class="ch-model-add-btn" data-action="ChannelModels.showAddDialog" " title="Add model to channel">+ Add</button>
|
||||
`;
|
||||
container.innerHTML = html;
|
||||
},
|
||||
@@ -132,8 +132,8 @@ const ChannelModels = {
|
||||
<input type="text" id="chModelAddName" placeholder="e.g. Claude-3-Opus" maxlength="50">
|
||||
</label>
|
||||
<div class="ch-model-add-actions">
|
||||
<button class="btn-secondary" onclick="ChannelModels.closeAddDialog()">Cancel</button>
|
||||
<button class="btn-primary" onclick="ChannelModels.submitAdd()">Add</button>
|
||||
<button class="btn-secondary" data-action="ChannelModels.closeAddDialog" ">Cancel</button>
|
||||
<button class="btn-primary" data-action="ChannelModels.submitAdd" ">Add</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>`;
|
||||
@@ -436,5 +436,5 @@ function _shortName(fullName) {
|
||||
}
|
||||
|
||||
// ── Exports ─────────────────────────────────
|
||||
window.ChannelModels = ChannelModels;
|
||||
sb.ns('ChannelModels', ChannelModels);
|
||||
})();
|
||||
|
||||
Reference in New Issue
Block a user