change capital M to lower m

This commit is contained in:
CPSO 2020-05-27 22:46:39 +02:00
parent d316f41aea
commit 81a83bec22
3 changed files with 13 additions and 7 deletions

View file

@ -10,7 +10,7 @@
@input="selectSelection"> @input="selectSelection">
<option <option
v-for="option in pmsSections" v-for="option in pmsSections"
:value="option" :value="option.key"
:key="option.key" :key="option.key"
v-on:change="onchange()"> v-on:change="onchange()">
{{ option.title }} {{ option.title }}
@ -24,6 +24,9 @@
<div class="buttons"> <div class="buttons">
<b-button type="is-primary" @click="getMedia" icon-left="fas fa-file-download" icon-pack="fas">Get Media from selection</b-button> <b-button type="is-primary" @click="getMedia" icon-left="fas fa-file-download" icon-pack="fas">Get Media from selection</b-button>
</div> </div>
<hr>
<h1 class="title is-3">3. Get data</h1>
</section> </section>
</template> </template>
@ -41,13 +44,12 @@ export default {
}, methods: { }, methods: {
selectSelection: function (selected) { selectSelection: function (selected) {
console.log(selected) console.log(selected)
//this.$store.commit("UPDATE_SELECTED_SERVER", selected); this.$store.commit("UPDATE_SELECTEDSECTION", selected);
}, },
getMedia(){ getMedia(){
console.log("getMedia Called") console.log("getMedia Called")
this.$store.dispatch('getMedia'); this.$store.dispatch('getMedia');
} }
} }
} }

View file

@ -1,9 +1,9 @@
import Vue from 'vue' import Vue from 'vue'
import Vuex from 'vuex' import Vuex from 'vuex'
import VuexPersistence from 'vuex-persist'; import VuexPersistence from 'vuex-persist';
import plextv from './Modules/plextv' import plextv from './modules/plextv'
import poeditor from './Modules/poeditor' import poeditor from './modules/poeditor'
import et from './Modules/et' import et from './modules/et'
Vue.use(Vuex) Vue.use(Vuex)

View file

@ -2,12 +2,16 @@ import axios from 'axios';
const state = { const state = {
sections: [] sections: [],
selectedSection : ""
}; };
const mutations = { const mutations = {
UPDATE_SECTIONS(state, payload) { UPDATE_SECTIONS(state, payload) {
state.sections = payload; state.sections = payload;
},
UPDATE_SELECTEDSECTION(state, payload) {
state.selectedSection = payload
} }
}; };