Commit 918077a0 authored by Dennis Tang's avatar Dennis Tang

set isLoading in created lifecycle hook

parent b45714db
...@@ -16,7 +16,6 @@ export default { ...@@ -16,7 +16,6 @@ export default {
}, },
data() { data() {
return { return {
isLoading: true,
searchPlaceholderText: s__('ClusterIntegration|Search projects'), searchPlaceholderText: s__('ClusterIntegration|Search projects'),
noSearchResultsText: s__('ClusterIntegration|No projects matched your search'), noSearchResultsText: s__('ClusterIntegration|No projects matched your search'),
}; };
...@@ -68,6 +67,8 @@ export default { ...@@ -68,6 +67,8 @@ export default {
}, },
}, },
created() { created() {
this.isLoading = true;
this.getProjects() this.getProjects()
.then(this.fetchSuccessHandler) .then(this.fetchSuccessHandler)
.catch(this.fetchFailureHandler); .catch(this.fetchFailureHandler);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment