Skip to content

Commit

Permalink
feat: added 'show less' button to the summary visualization
Browse files Browse the repository at this point in the history
  • Loading branch information
ErikBjare committed Jun 10, 2021
1 parent b5a4f38 commit 9b93879
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/visualizations/Summary.vue
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
<template lang="pug">
div
div.aw-summary-container
b-button.mt-1(v-if="fields && fields.length > 0 && with_limit && fields.length > limit_", size="sm", variant="outline-secondary", @click="limit_ += 5")
icon(name="angle-double-down")
| Show more
div(v-if="fields && fields.length > 0 && with_limit && fields.length > limit_")
b-button.mt-1(size="sm", variant="outline-secondary", @click="limit_ += 5")
icon(name="angle-double-down")
| Show more
b-button.ml-2.mt-1(v-if="limit_ != limit" size="sm", variant="outline-secondary", @click="limit_ = limit")
icon(name="angle-double-up")
</template>

<style scoped lang="scss">
Expand All @@ -19,6 +22,7 @@ div
import summary from './summary.js';
import 'vue-awesome/icons/angle-double-down';
import 'vue-awesome/icons/angle-double-up';
export default {
name: 'aw-summary',
Expand Down

0 comments on commit 9b93879

Please sign in to comment.