You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ma...@apache.org on 2024/08/25 17:24:48 UTC
(camel-karavan) branch main updated: Frontend fixes
This is an automated email from the ASF dual-hosted git repository.
marat pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel-karavan.git
The following commit(s) were added to refs/heads/main by this push:
new 1f3d461c Frontend fixes
1f3d461c is described below
commit 1f3d461c115da74798c9c8ed14d5549f5fd3fcdc
Author: Marat Gubaidullin <ma...@talismancloud.io>
AuthorDate: Sun Aug 25 13:24:43 2024 -0400
Frontend fixes
---
karavan-app/src/main/webui/src/api/ProjectService.ts | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/karavan-app/src/main/webui/src/api/ProjectService.ts b/karavan-app/src/main/webui/src/api/ProjectService.ts
index 62cdfe7a..924d5913 100644
--- a/karavan-app/src/main/webui/src/api/ProjectService.ts
+++ b/karavan-app/src/main/webui/src/api/ProjectService.ts
@@ -42,7 +42,9 @@ export class ProjectService {
ProjectEventBus.sendLog('set', '');
useLogStore.setState({showLog: true, type: 'container', podName: res.data})
} else {
- // EventBus.sendAlert('Error Starting DevMode container', res.statusText, 'warning')
+ var resData = (res as any)?.response?.data;
+ var error = resData?.message ? resData?.message : res.statusText;
+ EventBus.sendAlert('Error Starting DevMode container', error, 'warning')
}
});
}
@@ -61,7 +63,7 @@ export class ProjectService {
public static stopDevModeContainer(project: Project) {
useDevModeStore.setState({status: 'wip'})
- KaravanApi.manageContainer(project.projectId, 'devmode', project.projectId, 'stop', false,res => {
+ KaravanApi.manageContainer(project.projectId, 'devmode', project.projectId, 'stop', 'never',res => {
useDevModeStore.setState({status: 'none'})
if (res.status === 200) {
useLogStore.setState({showLog: false, type: 'container'})
@@ -73,7 +75,7 @@ export class ProjectService {
public static pauseDevModeContainer(project: Project) {
useDevModeStore.setState({status: 'wip'})
- KaravanApi.manageContainer(project.projectId, 'devmode', project.projectId, 'pause', false,res => {
+ KaravanApi.manageContainer(project.projectId, 'devmode', project.projectId, 'pause', 'never',res => {
useDevModeStore.setState({status: 'none'})
if (res.status === 200) {
useLogStore.setState({showLog: false, type: 'container'})