Skip to content

Commit

Permalink
feat: add displayname export import (#172)
Browse files Browse the repository at this point in the history
* feat: add displayName

* feat: add displayName

* fix: tests added

* feat: exim add displayName
  • Loading branch information
jsteenke authored Jul 11, 2024
1 parent 203e2d0 commit f2ac0ff
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/app/shared/generated/model/eximTheme.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import { Image } from './image';


export interface EximTheme {
displayName?: string;
cssFile?: string;
description?: string;
assetsUrl?: string;
Expand Down
3 changes: 3 additions & 0 deletions src/app/theme/theme-import/theme-import.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,9 @@ export class ThemeImportComponent implements OnInit {
Object.defineProperty(this.themeSnapshot.themes, this.themeName, themeProps ?? {})
delete this.themeSnapshot.themes[key[0]]
}
if (!this.themeSnapshot?.themes['displayName']) {
this.themeSnapshot.themes[key[0]] = { ...this.themeSnapshot.themes[key[0]], displayName: this.themeName }
}
this.themeApi
.importThemes({
themeSnapshot: this.themeSnapshot
Expand Down
2 changes: 2 additions & 0 deletions src/assets/api/openapi-bff.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -625,6 +625,8 @@ components:
EximTheme:
type: object
properties:
displayName:
type: string
cssFile:
type: string
description:
Expand Down

0 comments on commit f2ac0ff

Please sign in to comment.