File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
src/components/nav-buttons Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -78,13 +78,15 @@ export default {
78
78
// saves where JSON object is stored in state
79
79
saveJSONLocation (data ) {
80
80
// delete original key from local forage
81
+
82
+ // UNFINISHED, need to save key with a project before you can delete it?
81
83
let deleteKey =
82
84
this .$store .state .projects [this .$store .state .activeTab ].filename ;
83
85
localforage
84
86
.removeItem (deleteKey)
85
87
.then (function () {})
86
88
.catch (function (err ) {});
87
-
89
+
88
90
let fileName = this .parseFileName (data);
89
91
// if valid fileName
90
92
if (fileName) {
@@ -99,6 +101,7 @@ export default {
99
101
100
102
// for each route call parseAndDelete on htmlList
101
103
// eslint-disable-next-line no-unused-vars
104
+ /*
102
105
for (let view in routes) {
103
106
routes[view].forEach((component) => {
104
107
let htmlList = component.htmlList;
@@ -113,7 +116,7 @@ export default {
113
116
this.parseAndDelete(comphtml);
114
117
}
115
118
}
116
-
119
+ */
117
120
fs .writeFileSync (data, JSON .stringify (state));
118
121
localforage .setItem (
119
122
fileName,
You can’t perform that action at this time.
0 commit comments