Always use my-table-expander-icon

pull/4510/head
Chocobozzz 2021-10-27 11:54:48 +02:00 committed by Chocobozzz
parent 33f6dce136
commit e4611b5491
8 changed files with 16 additions and 24 deletions

View File

@ -33,10 +33,8 @@
<ng-template pTemplate="body" let-expanded="expanded" let-redundancy>
<tr>
<td>
<span class="expander" i18n-ngbTooltip ngbTooltip="List redundancies" [pRowToggler]="redundancy">
<i [ngClass]="expanded ? 'glyphicon glyphicon-menu-down' : 'glyphicon glyphicon-menu-right'"></i>
</span>
<td class="expand-cell" [pRowToggler]="redundancy">
<my-table-expander-icon i18n-ngbTooltip ngbTooltip="List redundancies" [expanded]="expanded"></my-table-expander-icon>
</td>
<td class="action-cell">

View File

@ -33,7 +33,7 @@
<ng-template pTemplate="body" let-videoBlock let-expanded="expanded">
<tr>
<td *ngIf="!videoBlock.reason"></td>
<td *ngIf="videoBlock.reason" class="expand-cell c-hand" [pRowToggler]="videoBlock" i18n-ngbTooltip ngbTooltip="More information" placement="top-left" container="body">
<td class="expand-cell" *ngIf="videoBlock.reason" [pRowToggler]="videoBlock">
<my-table-expander-icon [expanded]="expanded"></my-table-expander-icon>
</td>

View File

@ -53,10 +53,8 @@
<p-tableCheckbox [value]="videoComment" ariaLabel="Select this row" i18n-ariaLabel></p-tableCheckbox>
</td>
<td class="expand-cell c-hand" [pRowToggler]="videoComment" i18n-ngbTooltip ngbTooltip="More information" placement="top-left" container="body">
<span class="expander">
<i [ngClass]="expanded ? 'glyphicon glyphicon-menu-down' : 'glyphicon glyphicon-menu-right'"></i>
</span>
<td class="expand-cell" [pRowToggler]="videoComment">
<my-table-expander-icon i18n-ngbTooltip ngbTooltip="See full comment" [expanded]="expanded"></my-table-expander-icon>
</td>
<td class="action-cell">

View File

@ -79,10 +79,8 @@
<p-tableCheckbox [value]="user" ariaLabel="Select this row" i18n-ariaLabel></p-tableCheckbox>
</td>
<td class="expand-cell" [ngClass]="{ 'empty-cell': !user.blockedReason }">
<span *ngIf="user.blockedReason" class="expander" [pRowToggler]="user">
<i [ngClass]="expanded ? 'glyphicon glyphicon-menu-down' : 'glyphicon glyphicon-menu-right'"></i>
</span>
<td class="expand-cell" [ngClass]="{ 'empty-cell': !user.blockedReason }" [pRowToggler]="user">
<my-table-expander-icon *ngIf="user.blockedReason" [expanded]="expanded"></my-table-expander-icon>
</td>
<td class="action-cell">

View File

@ -53,10 +53,8 @@
<ng-template pTemplate="body" let-expanded="expanded" let-job>
<tr>
<td class="expand-cell c-hand" [pRowToggler]="job" i18n-ngbTooltip ngbTooltip="More information" placement="top-left" container="body">
<span class="expander">
<i [ngClass]="expanded ? 'glyphicon glyphicon-menu-down' : 'glyphicon glyphicon-menu-right'"></i>
</span>
<td class="expand-cell" [pRowToggler]="job">
<my-table-expander-icon [expanded]="expanded"></my-table-expander-icon>
</td>
<td class="job-id c-hand" [pRowToggler]="job" [title]="job.id">{{ job.id }}</td>

View File

@ -8,12 +8,14 @@ import { SharedGlobalIconModule } from '@app/shared/shared-icons'
import { SharedMainModule } from '@app/shared/shared-main'
import { SharedModerationModule } from '@app/shared/shared-moderation'
import { SharedShareModal } from '@app/shared/shared-share-modal'
import { SharedTablesModule } from '@app/shared/shared-tables'
import { SharedUserInterfaceSettingsModule } from '@app/shared/shared-user-settings'
import { SharedUserSubscriptionModule } from '@app/shared/shared-user-subscription/shared-user-subscription.module'
import { SharedVideoLiveModule } from '@app/shared/shared-video-live'
import { SharedVideoMiniatureModule } from '@app/shared/shared-video-miniature'
import { SharedVideoPlaylistModule } from '@app/shared/shared-video-playlist/shared-video-playlist.module'
import { SharedActorImageModule } from '../shared/shared-actor-image/shared-actor-image.module'
import { MyFollowersComponent } from './my-follows/my-followers.component'
import { MySubscriptionsComponent } from './my-follows/my-subscriptions.component'
import { MyHistoryComponent } from './my-history/my-history.component'
import { MyLibraryRoutingModule } from './my-library-routing.module'
@ -27,7 +29,6 @@ import { MyVideoPlaylistUpdateComponent } from './my-video-playlists/my-video-pl
import { MyVideoPlaylistsComponent } from './my-video-playlists/my-video-playlists.component'
import { VideoChangeOwnershipComponent } from './my-videos/modals/video-change-ownership.component'
import { MyVideosComponent } from './my-videos/my-videos.component'
import { MyFollowersComponent } from './my-follows/my-followers.component'
@NgModule({
imports: [
@ -48,7 +49,8 @@ import { MyFollowersComponent } from './my-follows/my-followers.component'
SharedAbuseListModule,
SharedShareModal,
SharedVideoLiveModule,
SharedActorImageModule
SharedActorImageModule,
SharedTablesModule
],
declarations: [

View File

@ -23,10 +23,8 @@
<ng-template pTemplate="body" let-expanded="expanded" let-videoImport>
<tr>
<td class="expand-cell c-hand" [pRowToggler]="videoImport" i18n-ngbTooltip ngbTooltip="See the error" placement="top-left" container="body">
<span *ngIf="videoImport.error" class="expander">
<i [ngClass]="expanded ? 'glyphicon glyphicon-menu-down' : 'glyphicon glyphicon-menu-right'"></i>
</span>
<td class="expand-cell" [pRowToggler]="videoImport">
<my-table-expander-icon [expanded]="expanded"></my-table-expander-icon>
</td>
<td class="action-cell">

View File

@ -29,7 +29,7 @@
<ng-template pTemplate="body" let-expanded="expanded" let-abuse>
<tr>
<td class="expand-cell c-hand" [pRowToggler]="abuse" i18n-ngbTooltip ngbTooltip="More information" placement="top-left" container="body">
<td class="expand-cell" [pRowToggler]="abuse">
<my-table-expander-icon [expanded]="expanded"></my-table-expander-icon>
</td>