mirror of
https://github.com/goharbor/harbor.git
synced 2025-02-18 12:51:27 +01:00
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:
parent
9d78038940
commit
fc6259e793
@ -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>
|
||||||
|
@ -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;
|
||||||
|
@ -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",
|
||||||
|
@ -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",
|
||||||
|
@ -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",
|
||||||
|
@ -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",
|
||||||
|
@ -359,7 +359,8 @@
|
|||||||
"ITEMS": "条记录",
|
"ITEMS": "条记录",
|
||||||
"FILTER_PLACEHOLDER": "过滤日志",
|
"FILTER_PLACEHOLDER": "过滤日志",
|
||||||
"INVALID_DATE": "无效日期。",
|
"INVALID_DATE": "无效日期。",
|
||||||
"OF": "共计"
|
"OF": "共计",
|
||||||
|
"NOT_FOUND": "未发现任何日志!"
|
||||||
},
|
},
|
||||||
"REPLICATION": {
|
"REPLICATION": {
|
||||||
"YES": "是",
|
"YES": "是",
|
||||||
|
Loading…
Reference in New Issue
Block a user