MCPcopy Create free account
hub / github.com/bywwcnll/StreamPanel / updatePinButtonState

Function updatePinButtonState

devtools/modules/messageRenderer.js:213–218  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

211}
212
213export function updatePinButtonState() {
214 const isPinned = isMessagePinned(state.selectedConnectionId, state.selectedMessageId);
215 elements.btnPin.classList.toggle('active', isPinned);
216 elements.btnPin.title = isPinned ? '取消置顶此消息' : '置顶此消息';
217 updateDetailNavButtons();
218}
219
220export function showAdjacentMessage(direction) {
221 const adjacentMessage = getAdjacentMessage(direction);

Callers 1

showMessageDetailFunction · 0.70

Calls 2

isMessagePinnedFunction · 0.90
updateDetailNavButtonsFunction · 0.70

Tested by

no test coverage detected