mirror of
https://github.com/Novaloop-AG/healthchat-web.git
synced 2026-11-06 14:38:21 +00:00
Remove right panel toggling behaviour on room header buttons (#100)
* Remove right panel toggling behaviour on room header buttons Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> * Remove stale test Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> * Fix tests Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> --------- Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
committed by
GitHub
parent
81bb56ae2b
commit
33c900e307
@@ -228,23 +228,6 @@ export default class RightPanelStore extends ReadyWatchingStore {
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* If the right panel is open, it is closed.
|
||||
* If the right panel is closed, it is opened with `phase`.
|
||||
*
|
||||
* This is different from showOrHidePhase which only closes the panel
|
||||
* if the panel was already showing the phase passed as argument.
|
||||
* @see showOrHidePhase
|
||||
* @param phase The right panel phase.
|
||||
*/
|
||||
public showOrHidePanel(phase: RightPanelPhases): void {
|
||||
if (!this.isOpen) {
|
||||
this.setCard({ phase });
|
||||
} else {
|
||||
this.togglePanel(null);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Helper to show a right panel phase.
|
||||
* If the UI is already showing that phase, the right panel will be hidden.
|
||||
|
||||
Reference in New Issue
Block a user