mirror of
https://github.com/ChuckBuilds/LEDMatrix.git
synced 2026-04-11 13:23:00 +00:00
Fix syntax error: Missing indentation for html += in array else block
The html += statement was outside the else block, causing a syntax error. Fixed by properly indenting it inside the else block.
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -47,6 +47,7 @@ plugins/*
|
||||
!plugins/soccer-scoreboard/
|
||||
!plugins/calendar/
|
||||
!plugins/mqtt-notifications/
|
||||
!plugins/youtube-stats/
|
||||
!plugins/olympics-countdown/
|
||||
!plugins/ledmatrix-stocks/
|
||||
!plugins/ledmatrix-music/
|
||||
|
||||
3
.gitmodules
vendored
3
.gitmodules
vendored
@@ -64,3 +64,6 @@
|
||||
[submodule "plugins/7-segment-clock"]
|
||||
path = plugins/7-segment-clock
|
||||
url = https://github.com/ChuckBuilds/ledmatrix-7-segment-clock
|
||||
[submodule "plugins/youtube-stats"]
|
||||
path = plugins/youtube-stats
|
||||
url = https://github.com/ChuckBuilds/ledmatrix-youtube-stats.git
|
||||
|
||||
1
plugins/youtube-stats
Submodule
1
plugins/youtube-stats
Submodule
Submodule plugins/youtube-stats added at a305591b06
@@ -3061,10 +3061,10 @@ function generateFieldHtml(key, prop, value, prefix = '') {
|
||||
} else {
|
||||
arrayValue = '';
|
||||
}
|
||||
html += `
|
||||
<input type="text" id="${fullKey}" name="${fullKey}" value="${arrayValue}" placeholder="Enter values separated by commas" class="mt-1 block w-full px-3 py-2 border border-gray-300 rounded-md shadow-sm focus:outline-none focus:ring-blue-500 focus:border-blue-500 sm:text-sm bg-white text-black placeholder:text-gray-500">
|
||||
<p class="text-sm text-gray-600 mt-1">Enter values separated by commas</p>
|
||||
`;
|
||||
html += `
|
||||
<input type="text" id="${fullKey}" name="${fullKey}" value="${arrayValue}" placeholder="Enter values separated by commas" class="mt-1 block w-full px-3 py-2 border border-gray-300 rounded-md shadow-sm focus:outline-none focus:ring-blue-500 focus:border-blue-500 sm:text-sm bg-white text-black placeholder:text-gray-500">
|
||||
<p class="text-sm text-gray-600 mt-1">Enter values separated by commas</p>
|
||||
`;
|
||||
}
|
||||
} else if (prop.enum) {
|
||||
html += `<select id="${fullKey}" name="${fullKey}" class="mt-1 block w-full px-3 py-2 border border-gray-300 rounded-md shadow-sm focus:outline-none focus:ring-blue-500 focus:border-blue-500 sm:text-sm bg-white text-black">`;
|
||||
|
||||
Reference in New Issue
Block a user