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

improve readability of toggleText chain

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