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
c7c4b28
commit 12177df
Showing
7 changed files
with
42 additions
and
1 deletion.
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
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/themed-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.
10 changes: 10 additions & 0 deletions
10
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,10 @@ | ||
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'], | ||
templateUrl: './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