Skip to content

Commit

Permalink
fix: displaying buttons in designer
Browse files Browse the repository at this point in the history
  • Loading branch information
HenryT-CG committed Jan 30, 2024
1 parent a2cb4d7 commit 8444926
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/app/theme/theme-designer/theme-designer.component.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Component, OnInit, ViewChild, ElementRef } from '@angular/core'
import { ActivatedRoute, Router } from '@angular/router'
import { FormBuilder, FormControl, FormGroup, Validators } from '@angular/forms'
import { Observable, debounceTime, switchMap } from 'rxjs'
import { Observable, debounceTime, map, switchMap } from 'rxjs'
import { TranslateService } from '@ngx-translate/core'
import { ConfirmationService, SelectItem } from 'primeng/api'

Expand All @@ -21,7 +21,7 @@ export class ThemeDesignerComponent implements OnInit {
@ViewChild('selectedFileInputLogo') selectedFileInputLogo: ElementRef | undefined
@ViewChild('selectedFileInputFavicon') selectedFileInputFavicon: ElementRef | undefined

public actions: Action[] = [] // TODO: remove if tests using actions$
public actions: Action[] = [] // TODO: remove if tests are using actions$
public actions$: Observable<Action[]> | undefined
public themes: Theme[] = []
public theme: Theme | undefined
Expand Down Expand Up @@ -66,7 +66,8 @@ export class ThemeDesignerComponent implements OnInit {
this.mode = route.snapshot.paramMap.has('id') ? 'EDIT' : 'NEW'
this.themeId = route.snapshot.paramMap.get('id')
this.themeIsCurrentUsedTheme = this.themeId === this.appStateService.currentPortal$.getValue()?.themeId
//this.prepareActionButtons()
this.prepareActionButtons()
/* TODO: remove this */
this.translate
.get([
'ACTIONS.CANCEL',
Expand Down Expand Up @@ -174,6 +175,7 @@ export class ThemeDesignerComponent implements OnInit {
this.loadThemeTemplates()
}

/* TODO: remove this */
private prepareActionButtons_old(data: any): void {
this.actions = [] // provoke change event
this.actions.push(
Expand Down Expand Up @@ -206,7 +208,6 @@ export class ThemeDesignerComponent implements OnInit {
)
}
private prepareActionButtons(): void {
/* TODO: use this
this.actions$ = this.translate
.get([
'ACTIONS.CANCEL',
Expand Down Expand Up @@ -248,7 +249,6 @@ export class ThemeDesignerComponent implements OnInit {
]
})
)
*/
}

// DropDown Theme Template
Expand Down

0 comments on commit 8444926

Please sign in to comment.