Skip to content

Commit

Permalink
Rename method
Browse files Browse the repository at this point in the history
  • Loading branch information
tkleinke committed Dec 20, 2024
1 parent 6fb8fab commit 9b86b81
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export class RelationPickerGroupComponent implements OnChanges {
}


public showPlusButton(): boolean {
public isPlusButtonVisible(): boolean {

return !this.relations[this.relationDefinition.name]
|| isEmpty(this.relations[this.relationDefinition.name])
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,11 @@
[relationIndex]="i"></relation-picker>
</div>

<div *ngIf="showPlusButton()"
<div *ngIf="isPlusButtonVisible()"
class="circular-button add-relation"
[class.with-margin]="relations[relationDefinition.name]?.length > 0"
type="button"
(click)="createRelation()">+</div>
<div *ngIf="!showPlusButton() && relations[relationDefinition.name]?.length > 1"
class="relation-picker-group-space"></div>
<div *ngIf="!isPlusButtonVisible() && relations[relationDefinition.name]?.length > 1"
class="relation-picker-group-space"></div>

0 comments on commit 9b86b81

Please sign in to comment.