Skip to content

Commit 4d5ad8c

Browse files
authored
Merge pull request ceph#64992 from rhcs-dashboard/tiering-enhancement
mgr/dashboard: Tiering form - Placement Target in Advanced Section Reviewed-by: Afreen Misbah <[email protected]> Reviewed-by: pujashahu <[email protected]>
2 parents 8b6b20b + aa3bb8a commit 4d5ad8c

File tree

7 files changed

+182
-224
lines changed

7 files changed

+182
-224
lines changed

src/pybind/mgr/dashboard/frontend/src/app/ceph/rgw/rgw-multisite-migrate/rgw-multisite-migrate.component.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@
5858
<div class="cd-col-form-input">
5959
<input class="form-control"
6060
type="text"
61-
placeholder="e.g, http://ceph-node-00.com:80"
61+
placeholder="http://ceph-node-00.com:80"
6262
id="zonegroup_endpoints"
6363
name="zonegroup_endpoints"
6464
formControlName="zonegroup_endpoints">
@@ -97,7 +97,7 @@
9797
<div class="cd-col-form-input">
9898
<input class="form-control"
9999
type="text"
100-
placeholder="e.g, http://ceph-node-00.com:80"
100+
placeholder="http://ceph-node-00.com:80"
101101
id="zone_endpoints"
102102
name="zone_endpoints"
103103
formControlName="zone_endpoints">

src/pybind/mgr/dashboard/frontend/src/app/ceph/rgw/rgw-multisite-zone-form/rgw-multisite-zone-form.component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@
9797
<div class="cd-col-form-input">
9898
<input class="form-control"
9999
type="text"
100-
placeholder="e.g, http://ceph-node-00.com:80"
100+
placeholder="http://ceph-node-00.com:80"
101101
id="zone_endpoints"
102102
name="zone_endpoints"
103103
formControlName="zone_endpoints">

src/pybind/mgr/dashboard/frontend/src/app/ceph/rgw/rgw-multisite-zonegroup-form/rgw-multisite-zonegroup-form.component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@
9191
<div class="cd-col-form-input">
9292
<input class="form-control"
9393
type="text"
94-
placeholder="e.g, http://ceph-node-00.com:80"
94+
placeholder="http://ceph-node-00.com:80"
9595
id="zonegroup_endpoints"
9696
name="zonegroup_endpoints"
9797
formControlName="zonegroup_endpoints">

src/pybind/mgr/dashboard/frontend/src/app/ceph/rgw/rgw-storage-class-details/rgw-storage-class-details.component.html

Lines changed: 16 additions & 55 deletions
Original file line numberDiff line numberDiff line change
@@ -7,34 +7,7 @@
77
data-testid="rgw-storage-details"
88
>
99
<tbody>
10-
@if( isTierMatch( TIER_TYPE_DISPLAY.LOCAL )){
11-
<tr>
12-
<td class="bold"
13-
i18n>
14-
Zone Group
15-
<cd-helper class="text-pre-wrap">
16-
<span>
17-
{{ zoneGroupText }}
18-
</span>
19-
</cd-helper>
20-
</td>
21-
<td>{{ selection?.zonegroup_name }}</td>
22-
</tr>
23-
} @if(isTierMatch( TIER_TYPE_DISPLAY.LOCAL )){
24-
<tr>
25-
<td class="bold"
26-
i18n>
27-
Placement Target
28-
<cd-helper class="text-pre-wrap">
29-
<span>
30-
Placement Target defines the destination and rules for moving objects between
31-
storage tiers.
32-
</span>
33-
</cd-helper>
34-
</td>
35-
<td>{{ selection?.placement_target }}</td>
36-
</tr>
37-
} @if(isTierMatch( TIER_TYPE_DISPLAY.CLOUD_TIER, TIER_TYPE_DISPLAY.GLACIER)){
10+
@if(isTierMatch( TIER_TYPE_DISPLAY.CLOUD_TIER, TIER_TYPE_DISPLAY.GLACIER)){
3811
<tr>
3912
<td class="bold"
4013
i18n>
@@ -75,32 +48,8 @@
7548
</div>
7649
</td>
7750
</tr>
78-
<tr>
79-
<td class="bold"
80-
i18n>
81-
Secret key
82-
<cd-helper class="text-pre-wrap">
83-
<span> {{ targetSecretKeyText }} </span>
84-
</cd-helper>
85-
</td>
86-
<td>
87-
<div cdsCol
88-
[columnNumbers]="{ md: 4 }"
89-
class="d-flex">
90-
<input
91-
cdsPassword
92-
type="password"
93-
readonly
94-
id="secret"
95-
[value]="selection?.secret"
96-
/>
97-
<button type="button"
98-
class="btn btn-light"
99-
cdPasswordButton="secret"></button>
100-
<cd-copy-2-clipboard-button source="secret"> </cd-copy-2-clipboard-button>
101-
</div>
102-
</td>
103-
</tr>
51+
}
52+
@if(isTierMatch( TIER_TYPE_DISPLAY.CLOUD_TIER, TIER_TYPE_DISPLAY.GLACIER)){
10453
<tr>
10554
<td class="bold"
10655
i18n>
@@ -213,7 +162,7 @@
213162
</td>
214163
<td>{{ selection?.multipart_sync_threshold | dimlessBinary }}</td>
215164
</tr>
216-
} @if(selection?.acl_mappings.length > 0) {
165+
} @if(selection?.acl_mappings?.length > 0) {
217166
<tr>
218167
<td class="bold w-25"
219168
i18n>ACLs</td>
@@ -234,6 +183,18 @@
234183
</td>
235184
</tr>
236185
}
186+
<tr>
187+
<td class="bold">
188+
Placement Target
189+
<cd-helper class="text-pre-wrap">
190+
<span i18n>
191+
Placement Target defines the destination and rules for moving objects between
192+
storage tiers.
193+
</span>
194+
</cd-helper>
195+
</td>
196+
<td>{{ selection?.placement_target }}</td>
197+
</tr>
237198
</tbody>
238199
</table>
239200
</cds-tab>

0 commit comments

Comments
 (0)