Fix: Set showExtensionsToast to false in local storage if no is clicked
This commit is contained in:
@@ -759,7 +759,11 @@ export default {
|
|||||||
}
|
}
|
||||||
let showExtensionsToast =
|
let showExtensionsToast =
|
||||||
localStorage.getItem("showExtensionsToast") === "yes";
|
localStorage.getItem("showExtensionsToast") === "yes";
|
||||||
if (!this.extensionInstalled && !showExtensionsToast) {
|
|
||||||
|
// Just return if showExtensionsToast is "no"
|
||||||
|
if (!showExtensionsToast) return
|
||||||
|
|
||||||
|
if (!this.extensionInstalled) {
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
this.$toast.show(this.$t("extensions_info2"), {
|
this.$toast.show(this.$t("extensions_info2"), {
|
||||||
icon: "extension",
|
icon: "extension",
|
||||||
|
|||||||
@@ -346,7 +346,7 @@ export default {
|
|||||||
doneButton: '<i class="material-icons">done</i>',
|
doneButton: '<i class="material-icons">done</i>',
|
||||||
expandResponse: false,
|
expandResponse: false,
|
||||||
responseBodyMaxLines: 16,
|
responseBodyMaxLines: 16,
|
||||||
|
|
||||||
settings: {
|
settings: {
|
||||||
SCROLL_INTO_ENABLED:
|
SCROLL_INTO_ENABLED:
|
||||||
typeof this.$store.state.postwoman.settings.SCROLL_INTO_ENABLED !==
|
typeof this.$store.state.postwoman.settings.SCROLL_INTO_ENABLED !==
|
||||||
@@ -561,16 +561,10 @@ export default {
|
|||||||
const res = await axios(reqConfig)
|
const res = await axios(reqConfig)
|
||||||
|
|
||||||
const data = this.$store.state.postwoman.settings.PROXY_ENABLED ? res.data : res
|
const data = this.$store.state.postwoman.settings.PROXY_ENABLED ? res.data : res
|
||||||
|
|
||||||
const schema = gql.buildClientSchema(data.data.data)
|
const schema = gql.buildClientSchema(data.data.data)
|
||||||
this.schema = gql.printSchema(schema, {
|
this.schema = gql.printSchema(schema, {
|
||||||
commentDescriptions: true,
|
commentDescriptions: true,
|
||||||
})
|
})
|
||||||
console.log(
|
|
||||||
gql.printSchema(schema, {
|
|
||||||
commentDescriptions: true,
|
|
||||||
})
|
|
||||||
)
|
|
||||||
|
|
||||||
if (schema.getQueryType()) {
|
if (schema.getQueryType()) {
|
||||||
const fields = schema.getQueryType().getFields()
|
const fields = schema.getQueryType().getFields()
|
||||||
@@ -679,7 +673,6 @@ export default {
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
// console.log(oldHeaders);
|
|
||||||
},
|
},
|
||||||
scrollInto(view) {
|
scrollInto(view) {
|
||||||
this.$refs[view].$el.scrollIntoView({
|
this.$refs[view].$el.scrollIntoView({
|
||||||
|
|||||||
Reference in New Issue
Block a user