Skip to content

Commit d86fc2f

Browse files
authored
Add missing slash for some API calls (#982)
1 parent 24a2edf commit d86fc2f

File tree

6 files changed

+6
-11
lines changed

6 files changed

+6
-11
lines changed

portal-ui/src/icons/IAMPoliciesIcon.tsx

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,29 +18,25 @@ import React from "react";
1818
import { SvgIcon } from "@material-ui/core";
1919
import { IIcon } from "./props";
2020

21-
const IAMPoliciesIcon = ({ width = 24, active=false }: IIcon) => {
21+
const IAMPoliciesIcon = ({ width = 24 }: IIcon) => {
2222
return (
2323
<SvgIcon style={{ width: width, height: width }}>
2424
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 11.983 13.868">
2525
<path
2626
data-name="Trazado 339"
2727
d="M11.847 2.479a.671.671 0 00-.681-.633A7.235 7.235 0 016.425.266a.663.663 0 00-.864 0A7.232 7.232 0 01.822 1.849a.668.668 0 00-.687.637c-.1 2.548-.083 6.137 1.19 7.88a12.969 12.969 0 004.25 3.316.971.971 0 00.415.093.97.97 0 00.416-.094 12.806 12.806 0 004.25-3.315c1.274-1.75 1.29-5.339 1.191-7.887zm-1.84 7.407a12.116 12.116 0 01-3.943 3.062.173.173 0 01-.146 0 12.051 12.051 0 01-3.942-3.062C.758 8.217.876 4.159.934 2.646h.015a8.029 8.029 0 005.043-1.7 8.026 8.026 0 005.048 1.7h.01c.057 1.521.175 5.573-1.043 7.241z"
28-
fill={active ? selected : unSelected}
2928
/>
3029
<path
3130
data-name="Trazado 339 - Contorno"
3231
d="M5.991.005a.769.769 0 01.5.185 7.141 7.141 0 004.553 1.557h.142a.774.774 0 01.763.729v.009c.1 2.559.082 6.171-1.21 7.94a12.908 12.908 0 01-4.288 3.346 1.064 1.064 0 01-.458.1 1.064 1.064 0 01-.457-.1 13.074 13.074 0 01-4.289-3.348C-.044 8.654-.061 5.043.038 2.48a.767.767 0 01.791-.733H.95A7.133 7.133 0 005.499.186a.762.762 0 01.492-.181zm5.052 1.943a7.343 7.343 0 01-4.682-1.6.569.569 0 00-.37-.138.562.562 0 00-.365.135A7.334 7.334 0 01.947 1.953h-.15a.566.566 0 00-.561.543c-.1 2.532-.083 6.1 1.17 7.816a12.849 12.849 0 004.212 3.284.875.875 0 00.745 0 12.68 12.68 0 004.211-3.283c1.255-1.719 1.27-5.285 1.171-7.818v-.008a.57.57 0 00-.562-.534h-.142zM5.992.822l.063.051a7.975 7.975 0 004.985 1.678h.106v.1a30.267 30.267 0 01-.043 3.577 7.631 7.631 0 01-1.019 3.726 12.229 12.229 0 01-3.981 3.093.274.274 0 01-.231 0 12.177 12.177 0 01-3.981-3.094C.62 8.212.778 4.026.83 2.653v-.1h.111A7.972 7.972 0 005.921.875zm4.961 1.929a8.172 8.172 0 01-4.961-1.672A8.17 8.17 0 011.03 2.751c-.128 3.591.217 5.973 1.026 7.081a11.948 11.948 0 003.9 3.031.074.074 0 00.062 0 12 12 0 003.9-3.03c.82-1.114 1.164-3.496 1.035-7.087z"
33-
fill={active ? selected : unSelected}
3432
/>
3533
<path
3634
data-name="Trazado 340"
3735
d="M7.477 4.463l-.4-.2-.313-.157-.771-.386v.676l-.836.334.836-.334v-.681l-1.489.745v.526l-.275.11v1l.275.032v.439l.652-.065V9.46l.391.156v.63l.446.223V5.743l-.394.079v-.957l.394-.138.393.138v.956l-.393-.078v4.726l.446-.223v-.63l.739-.293v-.556l-.738.219v-.63l.739-.147v-.546l.3-.027v-.541h-.652v-.592l.3.03.35.035v-.526l.275.055v-1l-.275-.11zm.175.7v.807l-.155-.031-.12-.024v.538l-.24-.024-.3-.03-.11-.011v.8h.652v.349l-.212.019-.091.008v.555l-.659.131-.081.016v.847l.129-.038.609-.181v.354l-.676.268-.063.025v.637l-.245.122V5.859l.273.055.12.024v-.1l.343.069V4.724l-.391-.157-.27-.108-.076-.03v-.553l.625.312.314.157.349.174v.532l.063.025z"
38-
fill={active ? selected : unSelected}
3936
/>
4037
<path
4138
data-name="Trazado 340 - Contorno"
4239
d="M5.892 3.556l.1.05.1-.05v.1l1.488.745v.52l.275.11v1.187l-.275-.055v.515l-.652-.065v.381h.652v.732l-.3.027v.536l-.739.147v.414l.737-.219v.758l-.739.293v.624l-.446.223v.1l-.1-.05-.1.05v-.1l-.446-.223v-.625l-.391-.156v-2.91l-.652.065v-.46l-.275-.032V5.034l.275-.11v-.52l1.489-.745zm0 .77V3.88l-1.289.645v.532l-.275.11v.841l.275.032v.417l.652-.065v3l.391.156v.636l.246.123V5.865l-.394.079V4.795l.594-.208v.07l.393.138v.945l.243.049v-.993l-.736-.294-.8.319-.074-.186zm1.388.26l-1.088-.544v.323l.283.113.454.182v1.373l-.343-.069v.1l-.394-.078v4.158l.045-.023v-.643l.74-.293v-.152l-.739.219V8.189l.74-.147v-.565l.3-.027v-.158h-.652V6.278l.652.066v-.549l.275.055v-.618l-.275-.109zm-1 .35l-.293-.1-.293.1V5.7l.193-.039v-.04l.1.02.1-.02v.04l.193.039z"
43-
fill={active ? selected : unSelected}
4440
/>
4541
</svg>
4642
</SvgIcon>

portal-ui/src/icons/TenantsOutlineIcon.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ const TenantsOutlinedIcon = ({ width = 24 }: IIcon) => {
2424
<path
2525
data-name="Trazado 395"
2626
d="M17.805 26.078a3.864 3.864 0 01-3.86-3.861 3.836 3.836 0 01.957-2.541l-3.641-4.727a7.473 7.473 0 01-2.847.693l-.132 2.42a2.054 2.054 0 01.765 1.6 2.053 2.053 0 01-2.05 2.05 2.053 2.053 0 01-2.05-2.05 2.053 2.053 0 011.859-2.042l.112-2.055A7.58 7.58 0 01.5 8.08 7.584 7.584 0 018.075.504a7.585 7.585 0 017.576 7.576 7.59 7.59 0 01-.223 1.822l3.922.57a2.782 2.782 0 012.419-1.4 2.8 2.8 0 012.8 2.8 2.8 2.8 0 01-2.8 2.8 2.8 2.8 0 01-2.8-2.746l-4.059-.589a7.6 7.6 0 01-2.352 2.844l3.527 4.581a3.864 3.864 0 011.716-.4 3.865 3.865 0 013.861 3.86 3.865 3.865 0 01-3.857 3.856zm-6.4-11.731l4.13 5.362-.145.149a3.36 3.36 0 00-.963 2.36 3.385 3.385 0 003.381 3.381 3.385 3.385 0 003.381-3.381 3.385 3.385 0 00-3.381-3.381 3.378 3.378 0 00-1.664.441l-.181.1-4.086-5.3.209-.144a7.107 7.107 0 002.47-2.956l.074-.165 4.844.7-.014.22c0 .074-.007.106-.007.139a2.323 2.323 0 002.321 2.32 2.323 2.323 0 002.321-2.32 2.323 2.323 0 00-2.321-2.321 2.307 2.307 0 00-2.074 1.284l-.078.155-4.8-.7.076-.264a7.133 7.133 0 00.274-1.954 7.1 7.1 0 00-7.1-7.1 7.1 7.1 0 00-7.1 7.1 7.1 7.1 0 006.219 7.04l.223.027-.161 2.95h-.232 0a1.576 1.576 0 00-1.6 1.569 1.572 1.572 0 001.571 1.57 1.572 1.572 0 001.571-1.57 1.574 1.574 0 00-.67-1.286l-.109-.076.17-3.123h.224a7.017 7.017 0 003.042-.735z"
27-
2827
/>
2928
</svg>
3029
</SvgIcon>

portal-ui/src/screens/Console/Buckets/BucketDetails/AddReplicationModal.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ const AddReplicationModal = ({
118118
};
119119

120120
api
121-
.invoke("POST", "api/v1/buckets-replication", remoteBucketsInfo)
121+
.invoke("POST", "/api/v1/buckets-replication", remoteBucketsInfo)
122122
.then((response: BulkReplicationResponse) => {
123123
setAddLoading(false);
124124

portal-ui/src/screens/Console/Buckets/ListBuckets/AddBucket.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ const AddBucket = ({
168168
}
169169

170170
api
171-
.invoke("POST", "api/v1/buckets", request)
171+
.invoke("POST", "/api/v1/buckets", request)
172172
.then((res) => {
173173
setAddLoading(false);
174174
closeModalAndRefresh(true);

portal-ui/src/screens/Console/Buckets/ListBuckets/BulkReplicationModal.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ const AddBulkReplicationModal = ({
154154
};
155155

156156
api
157-
.invoke("POST", "api/v1/buckets-replication", remoteBucketsInfo)
157+
.invoke("POST", "/api/v1/buckets-replication", remoteBucketsInfo)
158158
.then((response: BulkReplicationResponse) => {
159159
setAddLoading(false);
160160

@@ -191,7 +191,7 @@ const AddBulkReplicationModal = ({
191191
setExternalLoading(true);
192192

193193
api
194-
.invoke("POST", "api/v1/list-external-buckets", remoteConnectInfo)
194+
.invoke("POST", "/api/v1/list-external-buckets", remoteConnectInfo)
195195
.then((dataReturn) => {
196196
const buckets = get(dataReturn, "buckets", []);
197197

portal-ui/src/screens/Console/Users/AddUser.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ const AddUser = ({
136136
});
137137
} else {
138138
api
139-
.invoke("POST", "api/v1/users", {
139+
.invoke("POST", "/api/v1/users", {
140140
accessKey,
141141
secretKey,
142142
groups: selectedGroups,

0 commit comments

Comments
 (0)