Remove dependency on history component to add history entry

This commit is contained in:
Andrew Bastin
2021-05-24 22:39:58 -04:00
parent 46ebd49936
commit 9e602394cf
3 changed files with 5 additions and 12 deletions

View File

@@ -98,8 +98,6 @@ import {
clearGraphqlHistory,
toggleGraphqlHistoryEntryStar,
toggleRESTHistoryEntryStar,
addGraphqlHistoryEntry,
addRESTHistoryEntry,
deleteGraphqlHistoryEntry,
deleteRESTHistoryEntry
} from "~/newstore/history"
@@ -155,10 +153,6 @@ export default {
icon: "delete",
})
},
addEntry(entry) {
if (this.page === "rest") addRESTHistoryEntry(entry)
else addGraphqlHistoryEntry(entry)
},
enableHistoryClearing() {
if (!this.history || !this.history.length) return
this.isClearingHistory = true