1: Fix When the log is not found, the prompt is English.

2:Fix When clicking the Refresh Log button is invalid. Set search box to null invalid bug

Signed-off-by: 耐小心 <qiqizjl@qq.com>
This commit is contained in:
耐小心 2019-06-03 03:17:49 +08:00
parent 9d78038940
commit fc6259e793
No known key found for this signature in database
GPG Key ID: F6210866CBFD9528
7 changed files with 22 additions and 17 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,9 +67,9 @@ export class RecentLogComponent implements OnInit {
}
public doFilter(terms: string): void {
if (!terms) {
return;
}
// if (!terms) {
// return;
// }
this.currentTerm = terms.trim();
// Trigger data loading and start from first page
this.loading = true;

View File

@ -360,7 +360,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

@ -360,7 +360,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

@ -352,7 +352,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

@ -358,7 +358,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

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