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]="'repo_tag'">{{'AUDIT_LOG.TAGS' | translate}}</clr-dg-column>
<clr-dg-column [clrDgField]="'operation'">{{'AUDIT_LOG.OPERATION' | 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-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-row *ngFor="let l of recentLogs">
<clr-dg-cell>{{l.username}}</clr-dg-cell> <clr-dg-cell>{{l.username}}</clr-dg-cell>
<clr-dg-cell>{{l.repo_name}}</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 { public doFilter(terms: string): void {
if (!terms) { // if (!terms) {
return; // return;
} // }
this.currentTerm = terms.trim(); this.currentTerm = terms.trim();
// Trigger data loading and start from first page // Trigger data loading and start from first page
this.loading = true; this.loading = true;

View File

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

View File

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

View File

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

View File

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

View File

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