Fix css class

This commit is contained in:
Filipa Lacerda 2016-11-18 15:44:21 +00:00
parent baddb8872c
commit 25f99d8499
2 changed files with 4 additions and 2 deletions

View File

@ -64,6 +64,7 @@
state: this.store.state,
visibility: 'available',
isLoading: false,
cssContainerClass: environmentsData.cssClass,
endpoint: environmentsData.environmentsDataEndpoint,
canCreateDeployment: environmentsData.canCreateDeployment,
canReadEnvironment: environmentsData.canReadEnvironment,
@ -150,7 +151,7 @@
},
template: `
<div class="container-fluid container-limited">
<div :class="cssContainerClass">
<div class="top-area">
<ul v-if="!isLoading" class="nav-links">
<li v-bind:class="{ 'active': scope === undefined }">

View File

@ -16,4 +16,5 @@
"project-environments-path" => project_environments_path(@project),
"project-stopped-environments-path" => project_environments_path(@project, scope: :stopped),
"new-environment-path" => new_namespace_project_environment_path(@project.namespace, @project),
"help-page-path" => help_page_path("ci/environments")}, class: container_class }
"help-page-path" => help_page_path("ci/environments"),
"css-class" => container_class}}