Fix empty Plugin header tabs
This commit is contained in:
@@ -7,9 +7,9 @@ services:
|
|||||||
network_mode: "host"
|
network_mode: "host"
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
volumes:
|
volumes:
|
||||||
- ${APP_DATA_LOCATION}/pialert2/config:/home/pi/pialert/config
|
- ${APP_DATA_LOCATION}/pialert/config:/home/pi/pialert/config
|
||||||
# - ${APP_DATA_LOCATION}/pialert/db/pialert.db:/home/pi/pialert/db/pialert.db
|
# - ${APP_DATA_LOCATION}/pialert/db/pialert.db:/home/pi/pialert/db/pialert.db
|
||||||
- ${APP_DATA_LOCATION}/pialert2/db:/home/pi/pialert/db
|
- ${APP_DATA_LOCATION}/pialert/db:/home/pi/pialert/db
|
||||||
# (optional) useful for debugging if you have issues setting up the container
|
# (optional) useful for debugging if you have issues setting up the container
|
||||||
- ${LOGS_LOCATION}:/home/pi/pialert/front/log
|
- ${LOGS_LOCATION}:/home/pi/pialert/front/log
|
||||||
# DELETE START anyone trying to use this file: comment out / delete BELOW lines, they are only for development purposes
|
# DELETE START anyone trying to use this file: comment out / delete BELOW lines, they are only for development purposes
|
||||||
|
|||||||
@@ -146,7 +146,7 @@ function localize (obj, key) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
result == "" ? en_us : result ;
|
result == "" ? result = en_us : result ;
|
||||||
|
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
@@ -190,6 +190,9 @@ function generateTabs()
|
|||||||
activetab = 'active'
|
activetab = 'active'
|
||||||
|
|
||||||
$.each(pluginDefinitions, function(index, obj) {
|
$.each(pluginDefinitions, function(index, obj) {
|
||||||
|
|
||||||
|
// console.log(obj)
|
||||||
|
|
||||||
$('#tabs-location').append(
|
$('#tabs-location').append(
|
||||||
`<li class=" ${activetab}">
|
`<li class=" ${activetab}">
|
||||||
<a href="#${obj.unique_prefix}" data-plugin-prefix="${obj.unique_prefix}" id="${obj.unique_prefix}_id" data-toggle="tab" >
|
<a href="#${obj.unique_prefix}" data-plugin-prefix="${obj.unique_prefix}" id="${obj.unique_prefix}_id" data-toggle="tab" >
|
||||||
|
|||||||
Reference in New Issue
Block a user