mirror of
https://github.com/placeAtlas/atlas.git
synced 2024-12-29 08:14:35 +01:00
Disable delete button when only 1 period
Disable it or hide it?
This commit is contained in:
parent
736db1bc98
commit
251e6b7af8
1 changed files with 1 additions and 0 deletions
|
@ -792,6 +792,7 @@ function initPeriodGroups() {
|
|||
endPeriodEl.value = end
|
||||
if (startPeriodEl.max == 0) periodGroupEl.classList.add('no-time-slider')
|
||||
else periodGroupEl.classList.remove('no-time-slider')
|
||||
if (pathWithPeriods.length === 1) periodDeleteEl.classList.add("disabled")
|
||||
|
||||
startPeriodEl.addEventListener('input', event => {
|
||||
timelineSlider.value = parseInt(event.target.value)
|
||||
|
|
Loading…
Reference in a new issue