mirror of
https://github.com/goharbor/harbor.git
synced 2024-11-26 20:26:13 +01:00
Fix css issue for chart label filter (#15891)
Signed-off-by: AllForNothing <sshijun@vmware.com>
This commit is contained in:
parent
ec1c8c9cd3
commit
fed84069a2
@ -1,6 +1,6 @@
|
||||
<div>
|
||||
<div class="form-group filter-div">
|
||||
<input #filterInput type="text" placeholder='{{"LABEL.FILTER_LABEL_PLACEHOLDER" | translate }}'
|
||||
<input #filterInput class="clr-input" type="text" placeholder='{{"LABEL.FILTER_LABEL_PLACEHOLDER" | translate }}'
|
||||
[(ngModel)]="labelFilter">
|
||||
</div>
|
||||
<div class="label-items-container">
|
||||
|
@ -15,12 +15,7 @@
|
||||
margin-bottom: 24px;
|
||||
}
|
||||
|
||||
.info-tips-icon {
|
||||
color: grey;
|
||||
}
|
||||
|
||||
.info-tips-icon:hover {
|
||||
color: #007CBB;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
|
@ -94,7 +94,7 @@
|
||||
<div class="form-group robot-token">
|
||||
<label class="form-group-label-override">{{'ROBOT_ACCOUNT.TOKEN' |
|
||||
translate}}</label>
|
||||
<hbr-copy-input (onCopySuccess)="onCpSuccess($event)"
|
||||
<hbr-copy-input #copyInputComponent (onCopySuccess)="onCpSuccess($event)"
|
||||
inputSize="50" headerTitle=""
|
||||
defaultValue="{{robot?.secret}}" class="copy-input"></hbr-copy-input>
|
||||
</div>
|
||||
|
@ -11,6 +11,7 @@ import { DomSanitizer, SafeUrl } from "@angular/platform-browser";
|
||||
import { TranslateService } from "@ngx-translate/core";
|
||||
import { InlineAlertComponent } from "../inline-alert/inline-alert.component";
|
||||
import { errorHandler } from "../../units/shared.utils";
|
||||
import { CopyInputComponent } from "../push-image/copy-input.component";
|
||||
|
||||
@Component({
|
||||
selector: 'view-token',
|
||||
@ -28,6 +29,8 @@ export class ViewTokenComponent implements OnInit {
|
||||
@ViewChild(InlineAlertComponent)
|
||||
inlineAlertComponent: InlineAlertComponent;
|
||||
@ViewChild('secretForm', { static: true }) secretForm: NgForm;
|
||||
@ViewChild('copyInputComponent')
|
||||
copyInputComponent: CopyInputComponent;
|
||||
@Output()
|
||||
refreshSuccess: EventEmitter<boolean> = new EventEmitter<boolean>();
|
||||
copyToken: boolean = false;
|
||||
@ -111,6 +114,9 @@ export class ViewTokenComponent implements OnInit {
|
||||
onCpSuccess($event: any): void {
|
||||
this.copyToken = false;
|
||||
this.tokenModalOpened = false;
|
||||
if (this.copyInputComponent) {
|
||||
this.copyInputComponent.reset();
|
||||
}
|
||||
this.translate
|
||||
.get("ROBOT_ACCOUNT.COPY_SUCCESS", { param: this.robot.name })
|
||||
.subscribe((res: string) => {
|
||||
|
@ -281,3 +281,12 @@ input:-webkit-autofill {
|
||||
-webkit-text-fill-color: $input-autofill-color !important;
|
||||
caret-color: $input-autofill-color
|
||||
}
|
||||
|
||||
hbr-copy-input {
|
||||
.info-tips-icon {
|
||||
color: $pull-command-icon-color;
|
||||
}
|
||||
.info-tips-icon:hover {
|
||||
color: $pull-command-icon-hover-color;
|
||||
}
|
||||
}
|
||||
|
@ -45,4 +45,6 @@ $back-link-color: #4aaed9!important;
|
||||
$radio-button-checked: #4aaed9;
|
||||
$input-autofill-bg-color: #1b2a32;
|
||||
$input-autofill-color: #eaedf0;
|
||||
$pull-command-icon-color: #4aaed9;
|
||||
$pull-command-icon-hover-color: #007CBB;
|
||||
@import "./common.scss";
|
||||
|
@ -47,4 +47,6 @@ $back-link-color: none;
|
||||
$radio-button-checked: #0072a3;
|
||||
$input-autofill-bg-color: #fafafa;
|
||||
$input-autofill-color: #000;
|
||||
$pull-command-icon-color: #007CBB;
|
||||
$pull-command-icon-hover-color: #4aaed9;
|
||||
@import "./common.scss";
|
||||
|
@ -342,7 +342,7 @@
|
||||
"ROBOT_ACCOUNT": {
|
||||
"NAME": "Name",
|
||||
"PERMISSIONS": "Permissions",
|
||||
"TOKEN": "Token",
|
||||
"TOKEN": "Secret",
|
||||
"NEW_ROBOT_ACCOUNT": "NEW ROBOT ACCOUNT",
|
||||
"ENABLED_STATE": "Enabled state",
|
||||
"NUMBER_REQUIRED": "Field is required and should be an integer other than 0.",
|
||||
|
@ -343,7 +343,7 @@
|
||||
"ROBOT_ACCOUNT": {
|
||||
"NAME": "Name",
|
||||
"PERMISSIONS": "Permissions",
|
||||
"TOKEN": "Token",
|
||||
"TOKEN": "Secret",
|
||||
"NEW_ROBOT_ACCOUNT": "NEW ROBOT ACCOUNT",
|
||||
"ENABLED_STATE": "Enabled state",
|
||||
"CREATETION": "Created time",
|
||||
|
@ -1702,6 +1702,6 @@
|
||||
"STOP": "停止",
|
||||
"LIST": "查询",
|
||||
"REPOSITORY": "仓库",
|
||||
"HELM_LABEL": "Helm Chart label"
|
||||
"HELM_LABEL": "Helm Chart 标签"
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user