Merge pull request #7952 from qiqizjl/log_bugs

Fix some bugs in the Log page
This commit is contained in:
Will Sun 2019-09-04 10:10:28 +08:00 committed by GitHub
commit 697ec2a52f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
7 changed files with 18 additions and 12 deletions

View File

@ -25,7 +25,7 @@
<clr-dg-column [clrDgField]="'repo_tag'">{{'AUDIT_LOG.TAGS' | translate}}</clr-dg-column>
<clr-dg-column [clrDgField]="'operation'">{{'AUDIT_LOG.OPERATION' | translate}}</clr-dg-column>
<clr-dg-column [clrDgSortBy]="opTimeComparator">{{'AUDIT_LOG.TIMESTAMP' | translate}}</clr-dg-column>
<clr-dg-placeholder>We couldn't find any logs!</clr-dg-placeholder>
<clr-dg-placeholder>{{ 'AUDIT_LOG.NOT_FOUND' | translate }}</clr-dg-placeholder>
<clr-dg-row *ngFor="let l of recentLogs">
<clr-dg-cell>{{l.username}}</clr-dg-cell>
<clr-dg-cell>{{l.repo_name}}</clr-dg-cell>

View File

@ -67,6 +67,7 @@ export class RecentLogComponent implements OnInit {
}
public doFilter(terms: string): void {
// allow search by null characters
if (terms === undefined || terms === null) {
return;

View File

@ -416,7 +416,8 @@
"ITEMS": "items",
"FILTER_PLACEHOLDER": "Filter Logs",
"INVALID_DATE": "Invalid date.",
"OF": "of"
"OF": "of",
"NOT_FOUND": "We couldn't find any logs!"
},
"REPLICATION": {
"YES": "Yes",

View File

@ -416,7 +416,8 @@
"ITEMS": "elementos",
"FILTER_PLACEHOLDER": "Filtrar logs",
"INVALID_DATE": "Fecha invalida.",
"OF": "of"
"OF": "of",
"NOT_FOUND": "No pudimos encontrar ningún registro!"
},
"REPLICATION": {
"YES": "Yes",

View File

@ -409,7 +409,8 @@
"ITEMS": "items",
"FILTER_PLACEHOLDER": "Filtrer les Logs",
"INVALID_DATE": "Date invalide.",
"OF": "de"
"OF": "de",
"NOT_FOUND": "Nous n'avons trouvé aucun journal!"
},
"REPLICATION": {
"YES": "Yes",

View File

@ -414,7 +414,8 @@
"ITEMS": "itens",
"FILTER_PLACEHOLDER": "Filtrar Logs",
"INVALID_DATE": "Data inválida.",
"OF": "de"
"OF": "de",
"NOT_FOUND": "Nós não encontramos nenhum registro!"
},
"REPLICATION": {
"YES": "Yes",

View File

@ -415,7 +415,8 @@
"ITEMS": "条记录",
"FILTER_PLACEHOLDER": "过滤日志",
"INVALID_DATE": "无效日期。",
"OF": "共计"
"OF": "共计",
"NOT_FOUND": "未发现任何日志!"
},
"REPLICATION": {
"YES": "是",