Chocobozzz/PeerTube

View on GitHub
client/src/app/+admin/plugins/shared/plugin-navigation.component.html

Summary

Maintainability
Test Coverage
<div class="root">
  <div class="btn-group select-button" role="group" i18n-aria-label aria-label="Navigate between installed plugins and themes or find new ones">
    <a i18n routerLink="/admin/plugins/list-installed" [queryParams]="{ pluginType: pluginType }" routerLinkActive="active">Installed</a>
    <a i18n routerLink="/admin/plugins/search" [queryParams]="{ pluginType: pluginType }" routerLinkActive="active">Search</a>
  </div>

  <div class="btn-group select-button" role="group" i18n-aria-label aria-label="Navigate between plugins and themes">
    <a i18n [ngClass]="{ active: pluginType === 1 }" routerLink="." [queryParams]="{ pluginType: 1 }" queryParamsHandling="merge" class="">Plugins</a>
    <a i18n [ngClass]="{ active: pluginType === 2 }" routerLink="." [queryParams]="{ pluginType: 2 }" queryParamsHandling="merge" class="">Themes</a>
  </div>
</div>