Commit 1a3c976e authored by Dennis Tang's avatar Dennis Tang

improve readability of toggleText chain

parent 6195e0a7
...@@ -63,12 +63,12 @@ export default { ...@@ -63,12 +63,12 @@ export default {
} }
if (!this.hasProject && !this.hasZone) { if (!this.hasProject && !this.hasZone) {
return s__('ClusterIntegration|Select project and zone to choose machine type.'); return s__('ClusterIntegration|Select project.and zone to choose machine type');
} }
return this.hasZone return !this.hasZone
? s__('ClusterIntegration|Select machine type') ? s__('ClusterIntegration|Select zone to choose machine type')
: s__('ClusterIntegration|Select zone to choose machine type'); : s__('ClusterIntegration|Select machine type');
}, },
searchPlaceholderText() { searchPlaceholderText() {
return s__('ClusterIntegration|Search machine types'); return s__('ClusterIntegration|Search machine types');
......
...@@ -66,9 +66,9 @@ export default { ...@@ -66,9 +66,9 @@ export default {
return this.selectedProject.name; return this.selectedProject.name;
} }
return this.projects.length return !this.projects.length
? s__('ClusterIntegration|Select project') ? s__('ClusterIntegration|No projects found')
: s__('ClusterIntegration|No projects found'); : s__('ClusterIntegration|Select project');
}, },
searchPlaceholderText() { searchPlaceholderText() {
return s__('ClusterIntegration|Search projects'); return s__('ClusterIntegration|Search projects');
......
...@@ -60,9 +60,9 @@ export default { ...@@ -60,9 +60,9 @@ export default {
return this.selectedZone; return this.selectedZone;
} }
return this.$store.state.selectedProject.projectId.length return !this.hasProject
? s__('ClusterIntegration|Select zone') ? s__('ClusterIntegration|Select project to choose zone')
: s__('ClusterIntegration|Select project to choose zone'); : s__('ClusterIntegration|Select zone');
}, },
searchPlaceholderText() { searchPlaceholderText() {
return s__('ClusterIntegration|Search zones'); return s__('ClusterIntegration|Search zones');
......
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