Remove dependency on history component to add history entry
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user