Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactoring - Review Digitizing.js to split attributes in HTML #5420

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Gustry
Copy link
Member

@Gustry Gustry commented Feb 17, 2025

Linked to #5375, nothing interesting here, just splitting HTML attributes on multiple lines

@Gustry Gustry added javascript Pull requests that update Javascript code run end2end If the PR must run end2end tests or not backport release_3_9 labels Feb 17, 2025
@github-actions github-actions bot added this to the 3.10.0 milestone Feb 17, 2025
Comment on lines 585 to +592
if (this.toolSelected === DigitizingAvailableTools[0]) {
bootstrap.Dropdown.getOrCreateInstance(event.currentTarget).toggle();
} else {
mainLizmap.digitizing.toolSelected = (mainLizmap.digitizing.toolSelected !== DigitizingAvailableTools[0]) ? DigitizingAvailableTools[0] : this.toolSelected;
if (mainLizmap.digitizing.toolSelected !== DigitizingAvailableTools[0]) {
mainLizmap.digitizing.toolSelected = DigitizingAvailableTools[0];
} else {
mainLizmap.digitizing.toolSelected = this.toolSelected;
}
Copy link
Collaborator

@rldhont rldhont Feb 18, 2025

Choose a reason for hiding this comment

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

        const firstAvailableTools =  DigitizingAvailableTools[0];
        if (this.toolSelected === firstAvailableTools) {
            bootstrap.Dropdown.getOrCreateInstance(event.currentTarget).toggle();
        } else if (mainLizmap.digitizing.toolSelected !== firstAvailableTools) {
            mainLizmap.digitizing.toolSelected = firstAvailableTools;
        } else {
            mainLizmap.digitizing.toolSelected = this.toolSelected;
       }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport release_3_9 javascript Pull requests that update Javascript code run end2end If the PR must run end2end tests or not
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants