master
sergeybodin 2023-09-07 13:49:56 +03:00
parent 9c914e1d8b
commit d67cc60788
2 changed files with 4 additions and 3 deletions

View File

@ -1 +1 @@
<a class="btn" [href]="url" [target]="targetBlank ? '_blank' : '_self'" [innerText]="title"></a>
<a class="btn" [href]="url" [target]="targetSelf ? '_self' : '_blank'" [innerText]="title"></a>

View File

@ -21,10 +21,11 @@ export class ButtonSectionComponent {
get title() {
return this.objectsService.getValue(this.section, 'button-title');
}
get targetBlank() {
return this.objectsService.getValue(this.section, 'target-blank');
get targetSelf() {
return this.objectsService.getValue(this.section, 'target-self');
}
ngOnInit() {
}
}