(mode: ButtonMode)
| 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() { |
no test coverage detected