diff options
author | Phil Hughes <me@iamphill.com> | 2017-11-02 19:07:01 +0300 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2017-11-06 13:52:03 +0300 |
commit | 4119e92be5a83d845b8076237f7b0957fc392e7a (patch) | |
tree | 8ad48a29b7ae0fde74987ec722be8610826347d5 /app/assets/javascripts/vue_shared | |
parent | 46e0a66aedac4be34fd5c578af46898a2d208cd2 (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.vue | 32 |
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> |