Skip to content

PB-324: show layer info button without legend rename variables#743

Merged
LukasJoss merged 4 commits intodevelopfrom
feat-PB-324-show-layer-info-button-without-legend-rename-variables
Mar 28, 2024
Merged

PB-324: show layer info button without legend rename variables#743
LukasJoss merged 4 commits intodevelopfrom
feat-PB-324-show-layer-info-button-without-legend-rename-variables

Conversation

@LukasJoss
Copy link
Contributor

@LukasJoss LukasJoss commented Mar 27, 2024

@LukasJoss LukasJoss force-pushed the feat-PB-324-show-layer-info-button-without-legend-rename-variables branch from 9e42fc3 to e4cbc51 Compare March 27, 2024 11:30
@cypress
Copy link

cypress bot commented Mar 27, 2024

Passing run #1389 ↗︎

0 166 22 0 Flakiness 0

Details:

PB-324: Check for layer id and externality in layer description html content
Project: web-mapviewer Commit: 438b26da16
Status: Passed Duration: 04:47 💡
Started: Mar 28, 2024 8:13 AM Ended: Mar 28, 2024 8:18 AM

Review all test suite changes for PR #743 ↗︎

@LukasJoss LukasJoss force-pushed the feat-PB-324-show-layer-info-button-without-legend-rename-variables branch 2 times, most recently from 5b36357 to 11459f1 Compare March 27, 2024 14:45
@LukasJoss LukasJoss requested review from ltkum, ltshb and pakb March 27, 2024 14:55
Copy link
Contributor

@ltshb ltshb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a minor improvement, thanks

Comment on lines 40 to 50
watch(layer, async (newLayer) => {
htmlContent.value = await getLayerLegend(currentLang.value, newLayer.id)
htmlContent.value = await getLayerDescription(currentLang.value, newLayer.id)
})

watch(layerId, async (newLayerId) => {
htmlContent.value = await getLayerLegend(currentLang.value, newLayerId)
htmlContent.value = await getLayerDescription(currentLang.value, newLayerId)
})
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here we should also check for non null value of newLayerId and for non external layer like in onMounted. Although it is not directly related to this PR, but it would be wise to change it, to improve the robustness of the code.

@LukasJoss LukasJoss force-pushed the feat-PB-324-show-layer-info-button-without-legend-rename-variables branch from 11459f1 to 438b26d Compare March 28, 2024 08:10
@LukasJoss LukasJoss merged commit 4155936 into develop Mar 28, 2024
@LukasJoss LukasJoss deleted the feat-PB-324-show-layer-info-button-without-legend-rename-variables branch March 28, 2024 08:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants