-
Notifications
You must be signed in to change notification settings - Fork 56
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
Delete cluster in cluster edit [Cluster management ** HOLD**] #25
Conversation
Signed-off-by: Mohammed Abdi <mohammed.munir.abdi@ibm.com>
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.
minor comments here and there, and should be good.
Signed-off-by: Mohammed Abdi <mohammed.munir.abdi@ibm.com>
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.
EDIt: tested, does not work
} else { | ||
this.TornjakApi.localClusterDelete(inputData, this.props.clustersListUpdateFunc, this.props.globalClustersList); | ||
} | ||
window.alert("CLUSTER DELETED SUCCESSFULLY!"); |
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.
how do you know deletion is successful? How do you know if its successfully run?
this.TornjakApi.localClusterDelete(inputData, this.props.clustersListUpdateFunc, this.props.globalClustersList); | ||
} | ||
window.alert("CLUSTER DELETED SUCCESSFULLY!"); | ||
window.location.reload(); |
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.
What happens here if it reloads and the async function is still running?
Signed-off-by: Mohammed Abdi <mohammed.munir.abdi@ibm.com>
Signed-off-by: Mohammed Abdi <mohammed.munir.abdi@ibm.com>
Waiting on TypeScript completion |
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.
Change type of response to be more succinct in parsing result. Other than that, if tests shows working should be good to merge.
Rebased and moved to #333 to finish. Closing. |
#12
Signed-off-by: Mohammed Abdi mohammed.munir.abdi@ibm.com