weapons-container.component.html 643 B

123456789101112131415161718192021222324252627282930
  1. <div class="weapon-spell-container">
  2. <div class="tab-row">
  3. <button
  4. class="tab-button"
  5. (click)="active = 1"
  6. [class]="active === 1 ? 'active' : ''"
  7. >
  8. Waffen
  9. </button>
  10. <button
  11. class="tab-button"
  12. (click)="active = 2"
  13. [class]="active === 2 ? 'active' : ''"
  14. >
  15. Zauber
  16. </button>
  17. </div>
  18. @switch(active){ @case(1){
  19. <weapon-table #weaponTable></weapon-table>
  20. <ui-button
  21. [type]="'add'"
  22. [size]="'xlarge'"
  23. [color]="'primary'"
  24. class="button-margin"
  25. (click)="openModal()"
  26. ></ui-button>
  27. } @case(2){
  28. <spell-table #spellTable></spell-table>
  29. } }
  30. </div>