diff --git a/src/portal/src/app/base/project/helm-chart/helm-chart-detail/label-filter/label-filter.component.html b/src/portal/src/app/base/project/helm-chart/helm-chart-detail/label-filter/label-filter.component.html
index c9f355c5018..dddf0ee7af9 100644
--- a/src/portal/src/app/base/project/helm-chart/helm-chart-detail/label-filter/label-filter.component.html
+++ b/src/portal/src/app/base/project/helm-chart/helm-chart-detail/label-filter/label-filter.component.html
@@ -1,6 +1,6 @@
-
\ No newline at end of file
+
diff --git a/src/portal/src/app/shared/components/push-image/push-image.scss b/src/portal/src/app/shared/components/push-image/push-image.scss
index b8de3c5544c..a162a589526 100644
--- a/src/portal/src/app/shared/components/push-image/push-image.scss
+++ b/src/portal/src/app/shared/components/push-image/push-image.scss
@@ -15,12 +15,7 @@
margin-bottom: 24px;
}
-.info-tips-icon {
- color: grey;
-}
-
.info-tips-icon:hover {
- color: #007CBB;
cursor: pointer;
}
diff --git a/src/portal/src/app/shared/components/view-token/view-token.component.html b/src/portal/src/app/shared/components/view-token/view-token.component.html
index 7d03e9d9d67..215727a8df6 100644
--- a/src/portal/src/app/shared/components/view-token/view-token.component.html
+++ b/src/portal/src/app/shared/components/view-token/view-token.component.html
@@ -94,7 +94,7 @@
-
diff --git a/src/portal/src/app/shared/components/view-token/view-token.component.ts b/src/portal/src/app/shared/components/view-token/view-token.component.ts
index ea16c88a050..a93b6dc6578 100644
--- a/src/portal/src/app/shared/components/view-token/view-token.component.ts
+++ b/src/portal/src/app/shared/components/view-token/view-token.component.ts
@@ -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 = new EventEmitter();
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) => {
diff --git a/src/portal/src/css/common.scss b/src/portal/src/css/common.scss
index 8ab269ca32f..0816d2199bc 100644
--- a/src/portal/src/css/common.scss
+++ b/src/portal/src/css/common.scss
@@ -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;
+ }
+}
diff --git a/src/portal/src/css/dark-theme.scss b/src/portal/src/css/dark-theme.scss
index edbcc0156af..2d716d9b5cb 100644
--- a/src/portal/src/css/dark-theme.scss
+++ b/src/portal/src/css/dark-theme.scss
@@ -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";
diff --git a/src/portal/src/css/light-theme.scss b/src/portal/src/css/light-theme.scss
index 992a20e8e1c..cea4ddff87a 100644
--- a/src/portal/src/css/light-theme.scss
+++ b/src/portal/src/css/light-theme.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";
diff --git a/src/portal/src/i18n/lang/en-us-lang.json b/src/portal/src/i18n/lang/en-us-lang.json
index 22d09d4613c..a00c3fb620e 100644
--- a/src/portal/src/i18n/lang/en-us-lang.json
+++ b/src/portal/src/i18n/lang/en-us-lang.json
@@ -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.",
diff --git a/src/portal/src/i18n/lang/es-es-lang.json b/src/portal/src/i18n/lang/es-es-lang.json
index 7ed52de5b4c..f35eae274c3 100644
--- a/src/portal/src/i18n/lang/es-es-lang.json
+++ b/src/portal/src/i18n/lang/es-es-lang.json
@@ -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",
diff --git a/src/portal/src/i18n/lang/zh-cn-lang.json b/src/portal/src/i18n/lang/zh-cn-lang.json
index 4a20d42f673..9d51109e0a9 100644
--- a/src/portal/src/i18n/lang/zh-cn-lang.json
+++ b/src/portal/src/i18n/lang/zh-cn-lang.json
@@ -1702,6 +1702,6 @@
"STOP": "停止",
"LIST": "查询",
"REPOSITORY": "仓库",
- "HELM_LABEL": "Helm Chart label"
+ "HELM_LABEL": "Helm Chart 标签"
}
}