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

fix: fix condition in restartServiceNameExists check #1450

Merged

Conversation

meteyou
Copy link
Member

@meteyou meteyou commented Jul 1, 2023

Description

Updated the condition in the restartServiceNameExists getter in TheEditor.vue component. Previously, it was returning true if 'restartServiceName' exists. However, this was incorrect as the function should return true only when 'restartServiceName' does not exist. This change fixes an issue where the available services were not correctly checked if 'restartServiceName' existed.

Related Tickets & Documents

This PR fixes #1432

Mobile & Desktop Screenshots/Recordings

none

[optional] Are there any post-deployment tasks we need to perform?

none

Updated the condition in the restartServiceNameExists getter in TheEditor.vue component. Previously, it was returning true if 'restartServiceName' exists. However, this was incorrect as the function should return true only when 'restartServiceName' does not exist. This change fixes an issue where the available services were not correctly checked if 'restartServiceName' existed.

Signed-off-by: Stefan Dej <[email protected]>
@meteyou meteyou requested a review from dw-0 July 1, 2023 07:06
@meteyou meteyou merged commit a7e70c7 into mainsail-crew:develop Jul 1, 2023
@meteyou meteyou deleted the fix/save-and-restart-service-check branch July 1, 2023 09:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Hide "Save & Restart" when service is not available
2 participants