mirror of
https://github.com/coalaura/whiskr.git
synced 2025-09-09 09:19:54 +00:00
improvements
This commit is contained in:
@@ -493,7 +493,7 @@
|
||||
|
||||
if (!only || only === "tool") {
|
||||
if (this.#tool) {
|
||||
const { name, args, result, cost } = this.#tool;
|
||||
const { name, args, result, cost, invalid } = this.#tool;
|
||||
|
||||
const _name = this.#_tool.querySelector(".name"),
|
||||
_arguments = this.#_tool.querySelector(".arguments"),
|
||||
@@ -508,8 +508,11 @@
|
||||
|
||||
_cost.textContent = cost ? `${formatMoney(cost)}` : "";
|
||||
|
||||
_result.classList.toggle("error", result?.startsWith("error: "));
|
||||
_result.innerHTML = render(result || "*processing*");
|
||||
|
||||
this.#_tool.classList.toggle("invalid", invalid);
|
||||
|
||||
this.#_tool.setAttribute("data-tool", name);
|
||||
} else {
|
||||
this.#_tool.removeAttribute("data-tool");
|
||||
|
Reference in New Issue
Block a user