Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhil Hughes <me@iamphill.com>2017-11-02 19:07:01 +0300
committerPhil Hughes <me@iamphill.com>2017-11-06 13:52:03 +0300
commit4119e92be5a83d845b8076237f7b0957fc392e7a (patch)
tree8ad48a29b7ae0fde74987ec722be8610826347d5 /app/assets/javascripts/vue_shared
parent46e0a66aedac4be34fd5c578af46898a2d208cd2 (diff)
correctly updates commit data after committing changes
also merges data in after a fetch to save overriting all data. changed the render keys to save a full re-render when any data changes
Diffstat (limited to 'app/assets/javascripts/vue_shared')
-rw-r--r--app/assets/javascripts/vue_shared/components/skeleton_loading_container.vue32
1 files changed, 32 insertions, 0 deletions
diff --git a/app/assets/javascripts/vue_shared/components/skeleton_loading_container.vue b/app/assets/javascripts/vue_shared/components/skeleton_loading_container.vue
new file mode 100644
index 00000000000..4e759fb6c6c
--- /dev/null
+++ b/app/assets/javascripts/vue_shared/components/skeleton_loading_container.vue
@@ -0,0 +1,32 @@
+<script>
+ export default {
+ props: {
+ small: {
+ type: Boolean,
+ required: false,
+ default: false,
+ },
+ lines: {
+ type: Number,
+ required: false,
+ default: 6,
+ },
+ },
+ };
+</script>
+
+<template>
+ <div
+ class="animation-container"
+ :class="{
+ 'animation-container-small': small,
+ }"
+ >
+ <div
+ v-for="line in lines"
+ :key="line"
+ :class="'skeleton-line-' + line"
+ >
+ </div>
+ </div>
+</template>