Located area I of promlem and set up some helper code
The delete query button now works! Although it still has some issues
background will now disappear when you click to delete the query instead of the user having to refresh to remove it
removed unneccesary code
removed a chunk of commented out code
query no longer executable if it doesnt exist
removed console logs
Query will now only be deleted if it does not belong to a dashboard
you can now delete queries from /queries with the delete button in the column. This can only be seen if you have the "edit_query" permission
If the query is in use and you have the "edit_query" permission you will no longer be able to delete the query unless it is removed from all dashboards and so no longer in use
removed unnceesary console.logs
Can no longer access deleted queries if you know their URL. It will return a blank page
It all now works
Merge pull request #26 from hailocab/feature/delete-query

Feature/delete query