Преглед на файлове

fix(MainHeader): changeNightmode not a function

Owen Diffey преди 3 години
родител
ревизия
f04d00cc4a
променени са 1 файла, в които са добавени 2 реда и са изтрити 1 реда
  1. 2 1
      frontend/src/components/layout/MainHeader.vue

+ 2 - 1
frontend/src/components/layout/MainHeader.vue

@@ -168,7 +168,8 @@ export default {
 			this.windowWidth = window.innerWidth;
 		},
 		...mapActions("modalVisibility", ["openModal"]),
-		...mapActions("user/auth", ["logout"])
+		...mapActions("user/auth", ["logout"]),
+		...mapActions("user/preferences", ["changeNightmode"])
 	}
 };
 </script>