Add scores to follows and remove bad ones

This commit is contained in:
Chocobozzz
2018-01-11 09:35:50 +01:00
parent 7ae71355c4
commit 60650c77c8
21 changed files with 217 additions and 133 deletions

View File

@@ -3,8 +3,8 @@
sortField="createdAt" (onLazyLoad)="loadLazy($event)"
>
<p-column field="id" header="ID" [style]="{ width: '60px' }"></p-column>
<p-column field="score" header="Score"></p-column>
<p-column field="follower.host" header="Host"></p-column>
<p-column field="follower.score" header="Score"></p-column>
<p-column field="state" header="State"></p-column>
<p-column field="createdAt" header="Created date" [sortable]="true"></p-column>
</p-dataTable>

View File

@@ -31,7 +31,7 @@ function populateAsyncUserVideoChannels (authService: AuthService, channel: any[
const videoChannels = user.videoChannels
if (Array.isArray(videoChannels) === false) return
videoChannels.forEach(c => channel.push({ id: c.id, label: c.name }))
videoChannels.forEach(c => channel.push({ id: c.id, label: c.displayName }))
return res()
}

View File

@@ -44,7 +44,6 @@
[validationMessages]="validationMessages" [videoPrivacies]="videoPrivacies" [userVideoChannels]="userVideoChannels"
></my-video-edit>
<div class="submit-container">
<div *ngIf="videoUploaded === false" class="message-submit">Publish will be available when upload is finished</div>

View File

@@ -85,7 +85,7 @@
</div>
<div class="video-info-channel">
{{ video.channel.name }}
{{ video.channel.displayName }}
<!-- Here will be the subscribe button -->
</div>