Skip to content

Commit

Permalink
Use title for diff selector buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
Denis Lebo committed Feb 19, 2024
1 parent a9b1b61 commit 2cc50a2
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
<form>
<app-diff-tabs-button *ngFor="let dive of schedules.dives; let i = index" [index]="i"/>
<app-diff-tabs-button *ngFor="let dive of schedules.dives; let i = index" [index]="i" [title]="dive.title"/>
</form>
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@
</div>
<input type="checkbox" class="btn-check" id="{{'btn-check-' + this.index}}" name="profile-tab" autocomplete="off">
<label class="btn" [ngClass]="{'btn-success': isEnabled, 'btn-outline-secondary': !isEnabled}" (click)="clicked()"
for="{{'btn-check-' + this.index}}">Profile {{this.index}} </label>
for="{{'btn-check-' + this.index}}">{{this.title}} </label>
</div>
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ import {animate, keyframes, state, style, transition, trigger} from '@angular/an
})
export class DiffTabsButtonComponent implements OnInit {
@Input({required: true}) index = 0;
@Input({required: true}) title = '';
public state = 'disabled';

constructor(private profileComparatorService: ProfileComparatorService) {
Expand Down

0 comments on commit 2cc50a2

Please sign in to comment.