Skip to content

Commit

Permalink
#1 fix country list in additional field
Browse files Browse the repository at this point in the history
  • Loading branch information
syjer committed Jun 15, 2019
1 parent bb7db14 commit 7a527ef
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 9 deletions.
2 changes: 1 addition & 1 deletion src/app/additional-field/additional-field.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export class AdditionalFieldComponent implements OnInit, OnDestroy {
constructor(private translate: TranslateService, private i18nService: I18nService) { }

public ngOnInit(): void {
if (this.field.countryField) {
if (this.field.type === 'country') {
this.getCountries();
this.langChangeSub = this.translate.onLangChange.subscribe(change => {
this.getCountries();
Expand Down
8 changes: 0 additions & 8 deletions src/app/model/ticket.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,6 @@ export class AdditionalField {
maxLength: number;
restrictedValues: string[];
fields: Field[];


inputField: boolean;
euVat: boolean;
textareaField: boolean;
countryField: boolean;
selectField: boolean;

description: {[key: string]: Description};
}

Expand Down

0 comments on commit 7a527ef

Please sign in to comment.