Set showExtensionsToast to false in local storage if no is clicked
This commit is contained in:
@@ -797,10 +797,7 @@ export default {
|
|||||||
}
|
}
|
||||||
let showExtensionsToast =
|
let showExtensionsToast =
|
||||||
localStorage.getItem("showExtensionsToast") === "yes";
|
localStorage.getItem("showExtensionsToast") === "yes";
|
||||||
if (
|
if (!this.extensionInstalled && !showExtensionsToast) {
|
||||||
!this.extensionInstalled &&
|
|
||||||
!showExtensionsToast
|
|
||||||
) {
|
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
this.$toast.show(this.$t("extensions_info2"), {
|
this.$toast.show(this.$t("extensions_info2"), {
|
||||||
icon: "extension",
|
icon: "extension",
|
||||||
@@ -818,6 +815,11 @@ export default {
|
|||||||
{
|
{
|
||||||
text: this.$t("no"),
|
text: this.$t("no"),
|
||||||
onClick: (e, toastObject) => {
|
onClick: (e, toastObject) => {
|
||||||
|
this.$store.commit("setMiscState", {
|
||||||
|
value: false,
|
||||||
|
attribute: "showExtensionsToast"
|
||||||
|
});
|
||||||
|
localStorage.setItem("showExtensionsToast", "no");
|
||||||
toastObject.goAway(0);
|
toastObject.goAway(0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user