@processmaker/modeler 1.43.10 → 1.43.11
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/dist/modeler.common.js +16 -8
- package/dist/modeler.common.js.map +1 -1
- package/dist/modeler.umd.js +16 -8
- package/dist/modeler.umd.js.map +1 -1
- package/dist/modeler.umd.min.js +1 -1
- package/dist/modeler.umd.min.js.map +1 -1
- package/package.json +1 -1
- package/src/components/modeler/Modeler.vue +11 -3
package/package.json
CHANGED
|
@@ -1771,10 +1771,12 @@ export default {
|
|
|
1771
1771
|
*/
|
|
1772
1772
|
unhightligtNodes(clientId) {
|
|
1773
1773
|
const player = this.players.find(player => player.id === clientId);
|
|
1774
|
-
|
|
1774
|
+
|
|
1775
1775
|
player?.selectedNodes?.forEach((nodeId) => {
|
|
1776
1776
|
const element = this.getElementByNodeId(nodeId);
|
|
1777
|
-
element
|
|
1777
|
+
if (element) {
|
|
1778
|
+
element.component.setHighlightColor(false, player.color);
|
|
1779
|
+
}
|
|
1778
1780
|
});
|
|
1779
1781
|
},
|
|
1780
1782
|
/**
|
|
@@ -1788,7 +1790,9 @@ export default {
|
|
|
1788
1790
|
this.players = this.players.map((item) => (item.id === data.id ? { ...item, ...data } : item));
|
|
1789
1791
|
data?.selectedNodes?.forEach((nodeId) => {
|
|
1790
1792
|
const element = this.getElementByNodeId(nodeId);
|
|
1791
|
-
element
|
|
1793
|
+
if (element) {
|
|
1794
|
+
element.component.setHighlightColor(true, data.color);
|
|
1795
|
+
}
|
|
1792
1796
|
});
|
|
1793
1797
|
}
|
|
1794
1798
|
},
|
|
@@ -1928,6 +1932,7 @@ export default {
|
|
|
1928
1932
|
if (response.data) {
|
|
1929
1933
|
if (response.data?.error) {
|
|
1930
1934
|
this.assetFail = true;
|
|
1935
|
+
this.loadingAI = false;
|
|
1931
1936
|
}
|
|
1932
1937
|
}
|
|
1933
1938
|
})
|
|
@@ -1935,6 +1940,7 @@ export default {
|
|
|
1935
1940
|
const errorMsg = error.response?.data?.message || error.message;
|
|
1936
1941
|
window.ProcessMaker.alert(errorMsg, 'danger');
|
|
1937
1942
|
this.assetFail = true;
|
|
1943
|
+
this.loadingAI = false;
|
|
1938
1944
|
});
|
|
1939
1945
|
},
|
|
1940
1946
|
highlightTaskArrays(data) {
|
|
@@ -1990,6 +1996,7 @@ export default {
|
|
|
1990
1996
|
window.ProcessMaker.alert(response.data.message, 'danger');
|
|
1991
1997
|
// Stop and show error
|
|
1992
1998
|
this.assetFail = true;
|
|
1999
|
+
this.loadingAI = false;
|
|
1993
2000
|
} else {
|
|
1994
2001
|
this.setPromptSessions(response.data.promptSessionId);
|
|
1995
2002
|
// Successful generation
|
|
@@ -2026,6 +2033,7 @@ export default {
|
|
|
2026
2033
|
() => {
|
|
2027
2034
|
// Output error
|
|
2028
2035
|
this.assetFail = true;
|
|
2036
|
+
this.loadingAI = false;
|
|
2029
2037
|
},
|
|
2030
2038
|
);
|
|
2031
2039
|
},
|