(Toolbar) Removed unnecessary chat panel toggle method

This commit is contained in:
Sercan Yemen 2018-07-12 11:13:09 +03:00
parent 528c3f95e7
commit fdb572fadd

View File

@ -26,7 +26,6 @@ export class ToolbarComponent implements OnInit, OnDestroy
selectedLanguage: any; selectedLanguage: any;
showLoadingBar: boolean; showLoadingBar: boolean;
userStatusOptions: any[]; userStatusOptions: any[];
chatPanelLockedOpen: string;
// Private // Private
private _unsubscribeAll: Subject<any>; private _unsubscribeAll: Subject<any>;
@ -147,28 +146,6 @@ export class ToolbarComponent implements OnInit, OnDestroy
this._fuseSidebarService.getSidebar(key).toggleOpen(); this._fuseSidebarService.getSidebar(key).toggleOpen();
} }
toggleChatPanel(): void
{
// Get the chat panel sidebar
const chatPanelSidebar = this._fuseSidebarService.getSidebar('chatPanel');
// Store the original value
if ( chatPanelSidebar.lockedOpen !== '' )
{
this.chatPanelLockedOpen = chatPanelSidebar.lockedOpen;
}
// Toggle
if ( chatPanelSidebar.lockedOpen === this.chatPanelLockedOpen )
{
chatPanelSidebar.lockedOpen = '';
}
else
{
chatPanelSidebar.lockedOpen = this.chatPanelLockedOpen;
}
}
/** /**
* Search * Search
* *