Skip to content
This repository was archived by the owner on Mar 25, 2023. It is now read-only.

Commit cc5b5f7

Browse files
authored
Merge pull request #243 from bwsw/231-api-keys-tooltip
(closes #231) Add tooltip to API key reset button, put API key and Secret key right after the section title
2 parents 836a8b3 + 7b11097 commit cc5b5f7

File tree

3 files changed

+22
-15
lines changed

3 files changed

+22
-15
lines changed

src/app/settings/api-info/api-info.component.html

Lines changed: 20 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,18 @@
11
<section>
22
<div class="header-wrap">
33
<h4>{{ 'API' | translate }}</h4>
4-
<mdl-button mdl-button-type="icon" (click)="askToRegenerateKeys()">
4+
<mdl-button
5+
mdl-button-type="icon"
6+
mdl-tooltip-position="top"
7+
[mdl-tooltip]="'REGENERATE_KEYS' | translate"
8+
(click)="askToRegenerateKeys()"
9+
>
510
<mdl-icon>sync</mdl-icon>
611
</mdl-button>
712
</div>
813
<div class="section-container">
914
<div class="settings-control">
1015
<div *loading="loading">
11-
<div>
12-
<h5 [translate]="linkFields.apiUrl.title"></h5>
13-
<a class="mdl-color-text--primary-dark" target="_blank" [href]="linkFields.apiUrl.href">
14-
{{ linkFields.apiUrl.href }}
15-
</a>
16-
</div>
17-
18-
<div *ngIf="linkFields.apiDocLink.href">
19-
<h5 [translate]="linkFields.apiDocLink.title"></h5>
20-
<a class="mdl-color-text--primary-dark" target="_blank" [href]="linkFields.apiDocLink.href">
21-
{{ linkFields.apiDocLink.href }}
22-
</a>
23-
</div>
24-
2516
<div *ngIf="inputFields.apiKey.value">
2617
<h5 [translate]="inputFields.apiKey.title"></h5>
2718
<cs-input-group>
@@ -85,6 +76,20 @@ <h5 [translate]="inputFields.apiSecretKey.title"></h5>
8576
{{ 'COPY' | translate }}
8677
</mdl-tooltip>
8778
</div>
79+
<div>
80+
<h5 [translate]="linkFields.apiUrl.title"></h5>
81+
<a class="mdl-color-text--primary-dark" target="_blank" [href]="linkFields.apiUrl.href">
82+
{{ linkFields.apiUrl.href }}
83+
</a>
84+
</div>
85+
86+
<div *ngIf="linkFields.apiDocLink.href">
87+
<h5 [translate]="linkFields.apiDocLink.title"></h5>
88+
<a class="mdl-color-text--primary-dark" target="_blank" [href]="linkFields.apiDocLink.href">
89+
{{ linkFields.apiDocLink.href }}
90+
</a>
91+
</div>
92+
8893
</div>
8994
</div>
9095
</div>

src/i18n/en.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -558,6 +558,7 @@
558558
"API_DOC_LINK": "Documentation",
559559
"ASK_GENERATE_KEYS": "Are you sure you want to generate API keys?",
560560
"GENERATE": "Generate",
561+
"REGENERATE_KEYS": "Regenerate API keys",
561562

562563
"INSTANCE_GROUP_CHANGE": "Change instance group",
563564
"CREATE_NEW_GROUP": "Create a new group",

src/i18n/ru.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -558,6 +558,7 @@
558558
"API_DOC_LINK": "Документация",
559559
"ASK_GENERATE_KEYS": "Вы уверены, что хотите сгенерировать новые ключи API?",
560560
"GENERATE": "Сгенерировать",
561+
"REGENERATE_KEYS": "Сгенерировать новые ключи API",
561562

562563
"INSTANCE_GROUP_CHANGE": "Изменить группу",
563564
"CREATE_NEW_GROUP": "Создать новую",

0 commit comments

Comments
 (0)