|
@@ -226,6 +226,15 @@ export function deleteOperation (hash) {
|
|
|
operations.splice(operations.indexOf(operation), 1);
|
|
|
}
|
|
|
|
|
|
+
|
|
|
+export function deleteAllOperation () {
|
|
|
+ for (let i = 0; i < operations.length; i++) {
|
|
|
+ document.getElementById(`operation${operations[i].hash}Li`).remove();
|
|
|
+ }
|
|
|
+
|
|
|
+ operations.length = 0;
|
|
|
+}
|
|
|
+
|
|
|
|
|
|
|
|
|
|