Skip to content

Commit 688e8d8

Browse files
committed
Rename start-update-ingress-routes and start-get-k8s-domain-status IPCs
1 parent 4a71fe5 commit 688e8d8

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

electron/app/js/ipcRendererPreload.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,11 +75,11 @@ contextBridge.exposeInMainWorld(
7575
'start-wko-update',
7676
'start-ingress-install',
7777
'start-ingress-uninstall',
78-
'add-ingress-routes',
78+
'start-update-ingress-routes',
7979
'app-download-progress',
8080
'start-k8s-domain-deploy',
8181
'start-k8s-domain-undeploy',
82-
'get-wko-domain-status',
82+
'start-get-k8s-domain-status',
8383
'start-app-quit',
8484
'start-window-close'
8585
];

electron/app/js/wktWindow.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -398,7 +398,7 @@ class WktAppMenu {
398398
i18n.t('menu-go-domain=status-error-message')
399399
);
400400
}
401-
sendToWindow(focusedWindow, 'get-wko-domain-status');
401+
sendToWindow(focusedWindow, 'start-get-k8s-domain-status');
402402
}
403403
},
404404
{
@@ -443,7 +443,7 @@ class WktAppMenu {
443443
i18n.t('menu-go-add-routes-error-message')
444444
);
445445
}
446-
sendToWindow(focusedWindow,'add-ingress-routes');
446+
sendToWindow(focusedWindow,'start-update-ingress-routes');
447447
}
448448
},
449449
{

webui/src/js/windowStateUtils.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ function(wktProject, wktConsole, wdtDiscoverer, dialogHelper, projectIO,
166166
});
167167
});
168168

169-
window.api.ipc.receive('get-wko-domain-status', async () => {
169+
window.api.ipc.receive('start-get-k8s-domain-status', async () => {
170170
blurSelection();
171171
k8sDomainStatusChecker.startCheckDomainStatus().then(() => {Promise.resolve();}).catch(err => {
172172
displayCatchAllError('k8s-domain-status-checker-get-status', err).then(() => Promise.resolve());
@@ -215,7 +215,7 @@ function(wktProject, wktConsole, wdtDiscoverer, dialogHelper, projectIO,
215215
});
216216
});
217217

218-
window.api.ipc.receive('add-ingress-routes', async () => {
218+
window.api.ipc.receive('start-update-ingress-routes', async () => {
219219
blurSelection();
220220
ingressRoutesUpdater.startIngressRoutesUpdate().then(() => Promise.resolve()).catch(err => {
221221
displayCatchAllError('ingress-routes-updater-update-routes', err).then(() => Promise.resolve());

0 commit comments

Comments
 (0)