Commit af2a8cd2 authored by Filipa Lacerda's avatar Filipa Lacerda

Minor fixes after review

parent 617f00f8
...@@ -9,6 +9,7 @@ ...@@ -9,6 +9,7 @@
* [Mockup](https://gitlab.com/gitlab-org/gitlab-ce/uploads/2f655655c0eadf655d0ae7467b53002a/environments__deploy-graphic.png) * [Mockup](https://gitlab.com/gitlab-org/gitlab-ce/uploads/2f655655c0eadf655d0ae7467b53002a/environments__deploy-graphic.png)
*/ */
import _ from 'underscore'; import _ from 'underscore';
import { n__ } from '../../locale';
import deployBoardSvg from 'empty_states/icons/_deploy_board.svg'; import deployBoardSvg from 'empty_states/icons/_deploy_board.svg';
import instanceComponent from './deploy_board_instance_component.vue'; import instanceComponent from './deploy_board_instance_component.vue';
import loadingIcon from '../../vue_shared/components/loading_icon.vue'; import loadingIcon from '../../vue_shared/components/loading_icon.vue';
...@@ -40,7 +41,7 @@ ...@@ -40,7 +41,7 @@
return !this.isLoading && this.isEmpty; return !this.isLoading && this.isEmpty;
}, },
instanceTitle() { instanceTitle() {
return gl.text.pluralize('Instance', this.deployBoardData.instances); return n__('Instance', 'Instances', this.deployBoardData.instances);
}, },
projectName() { projectName() {
return '<projectname>'; return '<projectname>';
......
...@@ -69,8 +69,8 @@ export default class EnvironmentsStore { ...@@ -69,8 +69,8 @@ export default class EnvironmentsStore {
filtered = Object.assign({}, filtered, { filtered = Object.assign({}, filtered, {
hasDeployBoard: true, hasDeployBoard: true,
isDeployBoardVisible: oldEnvironmentState.isDeployBoardVisible === false ? isDeployBoardVisible: oldEnvironmentState.isDeployBoardVisible === false ?
oldEnvironmentState.isDeployBoardVisible : oldEnvironmentState.isDeployBoardVisible :
true, true,
deployBoardData: filtered.rollout_status.status === 'found' ? filtered.rollout_status : {}, deployBoardData: filtered.rollout_status.status === 'found' ? filtered.rollout_status : {},
isLoadingDeployBoard: filtered.rollout_status.status === 'loading', isLoadingDeployBoard: filtered.rollout_status.status === 'loading',
isEmptyDeployBoard: filtered.rollout_status.status === 'not_found', isEmptyDeployBoard: filtered.rollout_status.status === 'not_found',
......
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