MCPcopy Create free account
hub / github.com/chieapp/chie / #setButtonMode

Method #setButtonMode

src/view/chat-view.ts:234–242  ·  view source on GitHub ↗
(mode: ButtonMode)

Source from the content-addressed store, hash-verified

232
233 // Change button mode.
234 #setButtonMode(mode: ButtonMode) {
235 this.replyButton.setImage(mode);
236 this.replyButton.setEnabled(true);
237 this.replyButton.view.setTooltip(getTooltipForMode(mode));
238 this.#buttonMode = mode;
239 // Disable send button when there is error happened.
240 if (mode == 'send' && this.service.lastError)
241 this.replyButton.setEnabled(false);
242 }
243
244 // Create the switch button.
245 #updateSwitchButton() {

Callers 1

#resetUIStateMethod · 0.95

Calls 2

getTooltipForModeFunction · 0.85
setImageMethod · 0.45

Tested by

no test coverage detected