added history
This commit is contained in:
1 parent
0628190223
commit
a799e8e9e8
4 files changed
+82
-49
No files matched your search
@@ -32,15 +32,22 @@ export class HistoryService {
|
||||
this.history.push({
|
||||
date: new Date(),
|
||||
graphs: graphs,
|
||||
config: config
|
||||
config: config,
|
||||
hash: this.hash(graphs)
|
||||
});
|
||||
}
|
||||
|
||||
console.log(config);
|
||||
public hash(graphs) {
|
||||
return btoa(JSON.stringify([graphs]));
|
||||
}
|
||||
|
||||
public list() {
|
||||
return this.history;
|
||||
}
|
||||
|
||||
public restore(graphs: Graph[]) {
|
||||
console.log(graphs);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user