#16 levels dropdown is now working

This commit is contained in:
CPSO 2020-06-14 23:30:53 +02:00
parent 9e1f5217b5
commit 7ce3db98d3
4 changed files with 10 additions and 15 deletions

View file

@ -71,10 +71,10 @@
expanded
@input="selectExportLevel">
<option
v-for="option in exportLevels"
:value="option.key"
:key="option.key">
{{ option.key }}
v-for="(value, name) in exportLevels"
:value="value"
:key="name">
{{ name }}
</option>
</b-select>
</b-field>

View file

@ -1,7 +1,7 @@
{
"movie": {
"levels": {
"Level 1": "level1",
"Level 1":"level1",
"Level 2": "level2"
},
"level": {

View file

@ -31,17 +31,10 @@ const et = new class ET {
}
getLevels(libType) {
let result = []
// Returns an array of levels for a selected type og medias, like 'movie'
const levels = def[libType]['levels']
Object.keys(levels).forEach(function(key) {
const entry = {}
entry[key]=levels[key]
result.push(entry)
});
console.log('Nugga Keys123: ' + JSON.stringify( result))
const levels = def[libType]['levels']
log.debug('ET LevelNames: ' + JSON.stringify(levels))
return result
return levels
}
getLevelKeys(libType){

View file

@ -56,7 +56,9 @@ const actions = {
log.verbose(response)
// console.log("response from fetchPlexServers", response)
response.data.forEach((req) => {
if (req.owned == true && req.product == "Plex Media Server") {
// if (req.owned == true && req.product == "Plex Media Server") {
if (req.product == "Plex Media Server") {
console.log('GED&NUGGA ser ikke owned')
log.debug(req)
result.push(req);
}