Set showExtensionsToast to false in local storage if no is clicked
This commit is contained in:
@@ -757,7 +757,8 @@ export default {
|
|||||||
],
|
],
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
let showExtensionsToast = localStorage.getItem("showExtensionsToast") === "yes"
|
let showExtensionsToast =
|
||||||
|
localStorage.getItem("showExtensionsToast") === "yes";
|
||||||
if (!this.extensionInstalled && !showExtensionsToast) {
|
if (!this.extensionInstalled && !showExtensionsToast) {
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
this.$toast.show(this.$t("extensions_info2"), {
|
this.$toast.show(this.$t("extensions_info2"), {
|
||||||
@@ -776,12 +777,17 @@ export default {
|
|||||||
{
|
{
|
||||||
text: this.$t("no"),
|
text: this.$t("no"),
|
||||||
onClick: (e, toastObject) => {
|
onClick: (e, toastObject) => {
|
||||||
toastObject.goAway(0)
|
this.$store.commit("setMiscState", {
|
||||||
},
|
value: false,
|
||||||
},
|
attribute: "showExtensionsToast"
|
||||||
],
|
});
|
||||||
})
|
localStorage.setItem("showExtensionsToast", "no");
|
||||||
}, 15000)
|
toastObject.goAway(0);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
});
|
||||||
|
}, 15000);
|
||||||
}
|
}
|
||||||
|
|
||||||
this._keyListener = function(e) {
|
this._keyListener = function(e) {
|
||||||
|
|||||||
Reference in New Issue
Block a user