Explorar el Código

Remove setForumName and setForumDescription with generic setSettings commits

sbkwgh hace 8 años
padre
commit
480585d37f
Se han modificado 1 ficheros con 4 adiciones y 5 borrados
  1. 4 5
      frontend/src/store/index.js

+ 4 - 5
frontend/src/store/index.js

@@ -92,11 +92,10 @@ export default new Vuex.Store({
 		setAdmin (state, value) {
 			state.admin = value
 		},
-		setForumName (state, value) {
-			state.meta.name = value
-		},
-		setForumDescription (state, value) {
-			state.meta.description = value
+		setSettings (state, value) {
+			state.meta.name = value.forumName
+			state.meta.description = value.forumDescription
+			state.meta.showDescription = value.showDescription
 		},
 		addCategories (state, value) {
 			if(Array.isArray(value)) {