summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/environments
diff options
context:
space:
mode:
authorFilipa Lacerda <filipa@gitlab.com>2017-03-27 14:14:12 +0100
committerFilipa Lacerda <filipa@gitlab.com>2017-03-28 14:10:18 +0100
commitf6f56dddfcfed352dfba8dc32dad554096552a7d (patch)
treedddb941648708eb75c339f3185114e72eb4b7889 /app/assets/javascripts/environments
parentb46ac16cc89d649bf5fba9a36f1911a575b41e1f (diff)
downloadgitlab-ce-f6f56dddfcfed352dfba8dc32dad554096552a7d.tar.gz
Add back expandable folders behavior
Diffstat (limited to 'app/assets/javascripts/environments')
-rw-r--r--app/assets/javascripts/environments/components/environments_table.js9
-rw-r--r--app/assets/javascripts/environments/stores/environments_store.js4
2 files changed, 13 insertions, 0 deletions
diff --git a/app/assets/javascripts/environments/components/environments_table.js b/app/assets/javascripts/environments/components/environments_table.js
index 338dff40bc9..486389973d3 100644
--- a/app/assets/javascripts/environments/components/environments_table.js
+++ b/app/assets/javascripts/environments/components/environments_table.js
@@ -53,6 +53,15 @@ export default {
:can-create-deployment="canCreateDeployment"
:can-read-environment="canReadEnvironment"
:service="service"></tr>
+
+ <tr v-if="model.isOpen && model.children && model.children.length > 0"
+ is="environment-item"
+ v-for="children in model.children"
+ :model="children"
+ :toggleRow="toggleRow.bind(children)"
+ :can-create-deployment="canCreateDeploymentParsed"
+ :can-read-environment="canReadEnvironmentParsed"
+ :service="service"></tr>
</template>
</tbody>
</table>
diff --git a/app/assets/javascripts/environments/stores/environments_store.js b/app/assets/javascripts/environments/stores/environments_store.js
index 3c3084f3b78..f05fe6e60ae 100644
--- a/app/assets/javascripts/environments/stores/environments_store.js
+++ b/app/assets/javascripts/environments/stores/environments_store.js
@@ -85,4 +85,8 @@ export default class EnvironmentsStore {
this.state.stoppedCounter = count;
return count;
}
+
+ toggleRow(name) {
+
+ }
}