summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortejasKharat2024-06-21 12:32:52 +0530
committerSunil Shetye2024-08-30 11:07:30 +0530
commit89404618cc0c9dcdcb10460ce2a382285db65900 (patch)
tree944ee107117c986812cfbaead1058b46d2749796
parentdb3131d287395f58bd7f8e85579190880cf88b9c (diff)
downloadCommon-Interface-Project-89404618cc0c9dcdcb10460ce2a382285db65900.tar.gz
Common-Interface-Project-89404618cc0c9dcdcb10460ce2a382285db65900.tar.bz2
Common-Interface-Project-89404618cc0c9dcdcb10460ce2a382285db65900.zip
Launch in Editor and delete functionality working!
-rw-r--r--blocks/eda-frontend/src/redux/actions/dashboardActions.js2
-rw-r--r--blocks/eda-frontend/src/redux/actions/saveSchematicActions.js2
-rw-r--r--blocks/saveAPI/urls.py2
3 files changed, 3 insertions, 3 deletions
diff --git a/blocks/eda-frontend/src/redux/actions/dashboardActions.js b/blocks/eda-frontend/src/redux/actions/dashboardActions.js
index 02a45126..789a55c1 100644
--- a/blocks/eda-frontend/src/redux/actions/dashboardActions.js
+++ b/blocks/eda-frontend/src/redux/actions/dashboardActions.js
@@ -41,7 +41,7 @@ export const deleteSchematic = (saveId) => (dispatch, getState) => {
config.headers.Authorization = `Token ${token}`
}
- api.delete('save/' + saveId, config)
+ api.delete('save/diagram/' + saveId, config)
.then(
(res) => {
if (res.status === 200) {
diff --git a/blocks/eda-frontend/src/redux/actions/saveSchematicActions.js b/blocks/eda-frontend/src/redux/actions/saveSchematicActions.js
index 97912268..3bbb4cc0 100644
--- a/blocks/eda-frontend/src/redux/actions/saveSchematicActions.js
+++ b/blocks/eda-frontend/src/redux/actions/saveSchematicActions.js
@@ -59,7 +59,7 @@ export const saveSchematic = (title, description, xml, base64) => (dispatch, get
if (schSave.isSaved) {
// Updating saved schemaic
- api.post('save/' + schSave.details.save_id, queryString.stringify(body), config)
+ api.post('save/diagram/' + schSave.details.save_id, queryString.stringify(body), config)
.then(
(res) => {
dispatch({
diff --git a/blocks/saveAPI/urls.py b/blocks/saveAPI/urls.py
index b306995a..01d998a8 100644
--- a/blocks/saveAPI/urls.py
+++ b/blocks/saveAPI/urls.py
@@ -20,7 +20,7 @@ urlpatterns = [
saveAPI_views.GalleryFetchSaveDeleteView.as_view(),
name='fetchGallerySchematic'),
- path("<uuid:save_id>", saveAPI_views.DeleteDiagram.as_view(),
+ path("diagram/<uuid:save_id>", saveAPI_views.StateFetchUpdateView.as_view(),
name="deleteDiagram"),
]