mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-18 00:47:01 +00:00
fix(cloudcmd) client: edit: json files (#294)
This commit is contained in:
parent
5732752350
commit
d181b84c3b
4 changed files with 92 additions and 10 deletions
|
|
@ -268,7 +268,7 @@ function CloudCmdProto(DOM) {
|
|||
const data = await Storage.get(dirPath);
|
||||
|
||||
if (!data)
|
||||
await Storage.set(dirPath, getJsonFromFileTable());
|
||||
await Storage.setJson(dirPath, getJsonFromFileTable());
|
||||
}
|
||||
|
||||
function getPanels() {
|
||||
|
|
@ -328,7 +328,7 @@ function CloudCmdProto(DOM) {
|
|||
CloudCmd.log('reading dir: "' + path + '";');
|
||||
|
||||
const dirStorage = CloudCmd.config('dirStorage');
|
||||
const json = dirStorage && await Storage.get(path);
|
||||
const json = dirStorage && await Storage.getJson(path);
|
||||
|
||||
const name = options.currentName || Info.name;
|
||||
const {
|
||||
|
|
@ -364,7 +364,7 @@ function CloudCmdProto(DOM) {
|
|||
if (!CloudCmd.config('dirStorage'))
|
||||
return;
|
||||
|
||||
Storage.set(path, newObj);
|
||||
Storage.setJson(path, newObj);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue