-
Notifications
You must be signed in to change notification settings - Fork 35
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 console errors after deleting api #1610
Conversation
@NNN Could you please review it? |
@marla-singer on it. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good. No more errors in the console.
Nice refactoring.
Please change i18n string I've mentioned and I will merge it.
"deleteApiBackendConfirmation_deleteButton": "Delete", | ||
"deleteApiBackendConfirmation_header": "Delete API", | ||
"deleteApiBackendConfirmation_successMessage": "Successfully deleted API:", | ||
"deleteApiConfirmation_CancelButton": "Cancel", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should be cancelButton.
<button type="button" class="btn btn-default" data-dismiss="modal">{{_ "deleteApiBackendConfirmation_CancelButton"}}</button> | ||
<button type="button" class="btn btn-danger" id="deleteApi">{{_ "deleteApiBackendConfirmation_deleteButton"}}</button> | ||
<button type="button" class="btn btn-default" data-dismiss="modal"> | ||
{{_ "deleteApiConfirmation_CancelButton"}} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same here - cancelButton.
@NNN Done |
Also if there is an error or something prevents it from deleting, what will happen? |
Before It was just console out with error message what isnot good too. I think we should create another issue which will be solve this scenario |
@marla-singer I am just not sure that it's the right way to clean those error. @brylie what do you think? |
@NNN I think this is close enough for now. I see the original problem was with calling Lets merge the PR. |
Closes #1519