Skip to content

Commit 6bfda8a

Browse files
committed
Fix ui after rebase
1 parent 62ee668 commit 6bfda8a

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

server/src/main/java/com/cloud/network/vpn/Site2SiteVpnManagerImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ public boolean vpnGatewayContainsObsoleteParameters(Site2SiteCustomerGateway cus
247247
private void validateVpnCryptographicParameters(String ikePolicy, String espPolicy, String ikeVersion, Long domainId) {
248248
Pair<Boolean, String> validationResult = validateVpnCryptoAgainstExcludedList(ikePolicy, espPolicy, ikeVersion, domainId);
249249
if (Boolean.TRUE.equals(validationResult.first())) {
250-
throw new InvalidParameterValueException(validationResult.second() + " is excluded and cannot be used for VPN Customer Gateway creation.");
250+
throw new InvalidParameterValueException(validationResult.second() + "' is excluded and cannot be used for VPN Customer Gateway creation.");
251251
}
252252
}
253253

ui/src/views/network/CreateVpnCustomerGateway.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
</template>
2525

2626
<script>
27-
import { postApi } from '@/api'
27+
import { postAPI } from '@/api'
2828
import VpnCustomerGateway from './VpnCustomerGateway.vue'
2929
3030
export default {
@@ -40,7 +40,7 @@ export default {
4040
this.$emit('close-action')
4141
},
4242
handleSubmit ({ payload }) {
43-
postApi('createVpnCustomerGateway', payload).then(response => {
43+
postAPI('createVpnCustomerGateway', payload).then(response => {
4444
this.$pollJob({
4545
jobId: response.createvpncustomergatewayresponse.jobid,
4646
title: this.$t('message.add.vpn.customer.gateway'),

ui/src/views/network/UpdateVpnCustomerGateway.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
</template>
2626

2727
<script>
28-
import { api } from '@/api'
28+
import { postAPI } from '@/api'
2929
import VpnCustomerGateway from './VpnCustomerGateway.vue'
3030
3131
export default {
@@ -93,7 +93,7 @@ export default {
9393
return { encryption, hash, dh: dhGroup }
9494
},
9595
handleSubmit ({ payload }) {
96-
api('updateVpnCustomerGateway', {
96+
postAPI('updateVpnCustomerGateway', {
9797
id: this.resource.id,
9898
...payload
9999
}).then(response => {

ui/src/views/network/VpnCustomerGateway.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -324,7 +324,7 @@
324324
</template>
325325
<script>
326326
327-
import { api } from '@/api'
327+
import { getAPI } from '@/api'
328328
import { ref, reactive, toRaw } from 'vue'
329329
import { mixinForm } from '@/utils/mixin'
330330
import TooltipLabel from '@/components/widgets/TooltipLabel'
@@ -497,7 +497,7 @@ export default {
497497
498498
this.loadingParameters = true
499499
500-
const response = await api('listCapabilities')
500+
const response = await getAPI('listCapabilities')
501501
const capability = response.listcapabilitiesresponse?.capability || {}
502502
const parameters = capability.vpncustomergatewayparameters || {}
503503

0 commit comments

Comments
 (0)