forked from DSpace/dspace-angular
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9f2a1d0
commit f9b4460
Showing
10 changed files
with
47 additions
and
4 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
27 changes: 27 additions & 0 deletions
27
src/app/shared/lang-switch/themed-lang-switch.component.ts
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,27 @@ | ||
import { Component } from '@angular/core'; | ||
import { ThemedComponent } from '../theme-support/themed.component'; | ||
import { LangSwitchComponent } from './lang-switch.component'; | ||
|
||
/** | ||
* Themed wrapper for {@link LangSwitchComponent} | ||
*/ | ||
@Component({ | ||
selector: 'ds-themed-lang-switch', | ||
styleUrls: [], | ||
templateUrl: '../theme-support/themed.component.html', | ||
}) | ||
export class ThemedLangSwitchComponent extends ThemedComponent<LangSwitchComponent> { | ||
|
||
protected getComponentName(): string { | ||
return 'LangSwitchComponent'; | ||
} | ||
|
||
protected importThemedComponent(themeName: string): Promise<any> { | ||
return import(`../../../themes/${themeName}/app/shared/lang-switch/lang-switch.component`); | ||
} | ||
|
||
protected importUnthemedComponent(): Promise<any> { | ||
return import(`./lang-switch.component`); | ||
} | ||
|
||
} |
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
Empty file.
Empty file.
12 changes: 12 additions & 0 deletions
12
src/themes/custom/app/shared/lang-switch/lang-switch.component.ts
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,12 @@ | ||
import { Component } from '@angular/core'; | ||
import { LangSwitchComponent as BaseComponent } from '../../../../../app/shared/lang-switch/lang-switch.component'; | ||
|
||
@Component({ | ||
selector: 'ds-lang-switch', | ||
// styleUrls: ['./lang-switch.component.scss'], | ||
styleUrls: ['../../../../../app/shared/lang-switch/lang-switch.component.scss'], | ||
// templateUrl: './lang-switch.component.html', | ||
templateUrl: '../../../../../app/shared/lang-switch/lang-switch.component.html', | ||
}) | ||
export class LangSwitchComponent extends BaseComponent { | ||
} |
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