mirror of
https://github.com/WebTools-NG/WebTools-NG
synced 2024-11-23 11:33:14 +00:00
#16 levels dropdown is now working
This commit is contained in:
parent
9e1f5217b5
commit
7ce3db98d3
4 changed files with 10 additions and 15 deletions
|
@ -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>
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"movie": {
|
||||
"levels": {
|
||||
"Level 1": "level1",
|
||||
"Level 1":"level1",
|
||||
"Level 2": "level2"
|
||||
},
|
||||
"level": {
|
||||
|
|
|
@ -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){
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue