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