diff --git a/src/App.js b/src/App.js
index 70955ed..2d0493f 100644
--- a/src/App.js
+++ b/src/App.js
@@ -4,7 +4,7 @@ import React, {useState,useEffect,useReducer} from 'react';
import Toggle from 'react-toggle' //Tooltip props: http://aaronshaf.github.io/react-toggle/
import Helmet from 'react-helmet'
-import {XSquareFill, PlusCircle, LifePreserver, Server, CloudUploadFill} from 'react-bootstrap-icons'
+import {TrashFill, XSquareFill, PlusCircle, LifePreserver, Server, CloudUploadFill} from 'react-bootstrap-icons'
import { SkillTreeEditor } from './skilltree/skillTreeEditor'
@@ -143,6 +143,26 @@ function TableEditor(p) {
})
}
}
+
+ function SubmitDeletion() {
+ if (!lockSubmission) {
+ setLockSubmission(true)
+ var promises = []
+ for (var dat of data) {
+ if (document.getElementById("delete_"+dat.id).checked) {
+ promises.push(axios.delete(p.BACKENDURL+p.path,{data:{pass:p.password,id:dat.id}}))
+ }
+ }
+ Promise.allSettled(promises)
+ .catch((err)=>{
+ alert(err.message)
+ })
+ .then((data)=>{
+ setLockSubmission(false)
+ setUpdate(true)
+ })
+ }
+ }
useEffect(()=>{
setUpdate(true)
@@ -216,7 +236,7 @@ function TableEditor(p) {
}} style={{opacity:0}} id="uploads" type="file" accept=".txt,.csv"/>}
-
@@ -224,7 +244,7 @@ function TableEditor(p) {
{
+
{fields.map((field,i)=>{field.name}