()
| 163 | if (key === PREF_KEYS.rightPanelVisible && typeof value === 'boolean') { |
| 164 | this.isVisible = value; |
| 165 | this.updatePanelVisibility(); |
| 166 | } |
| 167 | if (key === PREF_KEYS.ticketInfoVisible && typeof value === 'boolean') { |
| 168 | this.showTicketInfo = value; |
| 169 | this.updateTicketInfoVisibility(); |
| 170 | this.updateTicketInfoToggleButton(); |
| 171 | } |
| 172 | if (key === PREF_KEYS.invitationFormVisible && typeof value === 'boolean') { |
| 173 | this.showInvitationForm = value; |
| 174 | this.invitationFormPreference = value; |
| 175 | this.renderTopSectionOnly(); |
| 176 | } |
| 177 | }); |
| 178 | } |
| 179 | |
| 180 | initializeState() { |
| 181 | // Load initial ticket count |
| 182 | this.ticketCount = this.app.services.tickets.getTicketCount(); |
| 183 | // Only auto-show form when no tickets if user hasn't explicitly set a preference |
| 184 | if (this.ticketCount === 0 && this.invitationFormPreference === null) { |
no test coverage detected