ansible / vscode-ansible

vscode/vscodium extension for providing Ansible auto-completion and integrating quality assurance tools like ansible-lint, ansible syntax check, yamllint, molecule and ansible-test.
https://ansible.readthedocs.io/projects/vscode-ansible/
MIT License
360 stars 86 forks source link

Playbook Generation ThumbsUp/Down UI fix #1316

Closed TamiTakamiya closed 4 months ago

TamiTakamiya commented 4 months ago

This PR addresses to fix following two problems:

  1. When either Thumbs Up or Thumbs Down button is clicked for the outline result, two notification messages
    Thanks for your feedback!
    Thank you for your feedback!

    are displayed.

  2. Thumbs Up or Thumbs/Down button s for one summary result can be clicked more than one time.

For 1, I removed the message issued from extension.ts. For 2, I added a logic to disable Thumbs Up/Down buttons after one was clicked. If the user clicks the Back button and re-issue the outline API, these buttons are enabled again.

Attached screenshot shows how the disabled buttons look on the UI:

image