-
Notifications
You must be signed in to change notification settings - Fork 357
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(rtl-demo): fix rtl/lrt demo in docs (#663)
* fix(rtl-demo): fix rtl/lrt demo in docs there were issues when navigation between views or when using the td-layout.. state was lost and sidenavs were not working as intended. * fix(): responsive titles in docs, style-guide and components * fix(): set template route before the chunks so they arent loaded when not needed this still will happen when trying to access any other chunk though.. for some reason they load anything before them. * fix(): issue when refreshing docs in rtl
- Loading branch information
1 parent
e9427aa
commit 7874b5b
Showing
11 changed files
with
59 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
src/app/components/layouts/manage-list/manage-list.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
export const DIRECTION_STORAGE_KEY: string = 'app-direction'; | ||
|
||
/** | ||
* Utility method to get selected direction from sessionStorage | ||
*/ | ||
export function getDirection(): 'ltr' | 'rtl' { | ||
let storedDirection: 'ltr' | 'rtl' = <any>sessionStorage.getItem(DIRECTION_STORAGE_KEY); | ||
// Check if the direction was stored | ||
if (storedDirection) { | ||
return storedDirection; | ||
} | ||
return 'ltr'; | ||
} | ||
|
||
/** | ||
* Utility method to set selected direction to sessionStorage | ||
*/ | ||
export function setDirection(direction: 'ltr' | 'rtl'): void { | ||
sessionStorage.setItem(DIRECTION_STORAGE_KEY, direction); | ||
} |