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

Function updatePinButtonState

devtools/panel.bundle.js:778–783  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

776 }
777
778 function updatePinButtonState() {
779 const isPinned = isMessagePinned(state.selectedConnectionId, state.selectedMessageId);
780 elements$6.btnPin.classList.toggle('active', isPinned);
781 elements$6.btnPin.title = isPinned ? '取消置顶此消息' : '置顶此消息';
782 updateDetailNavButtons();
783 }
784
785 function showAdjacentMessage(direction) {
786 const adjacentMessage = getAdjacentMessage(direction);

Callers 1

showMessageDetailFunction · 0.70

Calls 2

isMessagePinnedFunction · 0.70
updateDetailNavButtonsFunction · 0.70

Tested by

no test coverage detected