File tree Expand file tree Collapse file tree 1 file changed +0
-29
lines changed Expand file tree Collapse file tree 1 file changed +0
-29
lines changed Original file line number Diff line number Diff line change @@ -51,36 +51,7 @@ export default {
51
51
});
52
52
},
53
53
saveProjectJSON () {
54
- let projectLocation = this .$store .state .projects [
55
- this .$store .state .activeTab
56
- ].lastSavedLocation ;
57
- if (projectLocation) {
58
- console .log (' IN SAVE LOCATION' , this .$store .state );
59
- let state = this .$store .state ;
60
- let routes = state .routes ;
61
- for (let view in routes) {
62
- routes[view].forEach (component => {
63
- let htmlList = component .htmlList ;
64
- this .parseAndDelete (htmlList);
65
- });
66
- }
67
- let componentMap = this .$store .state .componentMap ;
68
- console .log (' compmap' , componentMap);
69
- for (let component in componentMap) {
70
- if (componentMap[component].htmlList ) {
71
- let comphtml = componentMap[component].htmlList ;
72
- console .log (' COMPHTML' , comphtml);
73
- this .parseAndDelete (comphtml);
74
- }
75
- }
76
-
77
- fs .writeFileSync (projectLocation, JSON .stringify (state));
78
-
79
- console .log (' PROJECT SAVED TO LAST SAVED LOCATION' );
80
- } else {
81
- // ipc.send('show-save-json-dialog');
82
54
this .showSaveJSONDialog ();
83
- }
84
55
},
85
56
saveJSONLocation (data ){
86
57
// delete original key from local forage
You can’t perform that action at this time.
0 commit comments