@kumologica/sdk 3.4.0-beta15 → 3.4.0-beta17

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "productName": "Kumologica Designer",
4
4
  "copyright": "Copyright 2020 Kumologica Pty Ltd, All Rights Reserved.",
5
5
  "author": "Kumologica Pty Ltd <contact@kumologica.com>",
6
- "version": "3.4.0-beta15",
6
+ "version": "3.4.0-beta17",
7
7
  "description": "Kumologica Designer, harnessing Serverless for your cloud integration needs",
8
8
  "main": "src/app/main.js",
9
9
  "files": [
@@ -64,9 +64,9 @@
64
64
  "license": "Proprietary",
65
65
  "dependencies": {
66
66
  "@electron/remote": "^2.0.8",
67
- "@kumologica/builder": "3.4.0-beta15",
68
- "@kumologica/devkit": "3.4.0-beta15",
69
- "@kumologica/runtime": "3.4.0-beta15",
67
+ "@kumologica/builder": "3.4.0-beta17",
68
+ "@kumologica/devkit": "3.4.0-beta17",
69
+ "@kumologica/runtime": "3.4.0-beta17",
70
70
  "adm-zip": "0.4.13",
71
71
  "ajv": "8.10.0",
72
72
  "archive-type": "^4.0.0",
@@ -76,7 +76,10 @@ class ModalNewProject {
76
76
  }
77
77
 
78
78
  close() {
79
- this.window.close();
79
+ if (this.window){
80
+ this.window.close();
81
+ }
82
+
80
83
  }
81
84
  get window() {
82
85
  return this.window;
@@ -26540,6 +26540,11 @@ RED.sidebar.azure = (function () {
26540
26540
  let path = window.__kumologica.libs.path;
26541
26541
 
26542
26542
  const openProject = (projectLocation) => {
26543
+ if (projectLocation === RED.projectInfo.getWorkspaceInfo()[0].path) {
26544
+ RED.notify(`<strong>Warning</strong>: "${path.basename(projectLocation)}" project is already opened.`, 'warning');
26545
+ return;
26546
+ }
26547
+
26543
26548
  window.__kumologica.main.dispatch('modal-home:open-project-in-editor', {
26544
26549
  payload: {
26545
26550
  projectLocation
@@ -26851,6 +26856,12 @@ RED.sidebar.azure = (function () {
26851
26856
  }
26852
26857
 
26853
26858
  $('#exp-open-project').tree('loadData', data);
26859
+ // Add a tooltip to the current project name with the path that is located.
26860
+ RED.popover.tooltip(
26861
+ $('#exp-open-project').find('div').first(),
26862
+ RED.projectInfo.getWorkspaceInfo()[0].path
26863
+ );
26864
+
26854
26865
  }
26855
26866
 
26856
26867
  const refreshWorkspaceProjects = () => {
@@ -26871,7 +26882,14 @@ RED.sidebar.azure = (function () {
26871
26882
  let projectsAZ = projects.sort((a, b) => path.basename(a).localeCompare(path.basename(b)));
26872
26883
  projectsAZ.forEach((project, index) => {
26873
26884
  let projectName = path.basename(project);
26874
- data[0].children.push({ id: name, name: projectName, path: project });
26885
+
26886
+ // Do not include in the list of workspaces the current project
26887
+ if (project === RED.projectInfo.getWorkspaceInfo()[0].path){
26888
+ data[0].children.push({ id: name, name: `${projectName} (current)`, path: project });
26889
+ } else {
26890
+ data[0].children.push({ id: name, name: projectName, path: project });
26891
+ }
26892
+
26875
26893
  })
26876
26894
  }
26877
26895