Skip to content

Commit

Permalink
fix: button content not variable
Browse files Browse the repository at this point in the history
  • Loading branch information
Chrinsieboy committed Jan 11, 2024
1 parent 03bfca4 commit 61aa5cd
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion src/resources/vue/components/terminal-scan.vue
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<Icon v-if="!text" :icon="icon" size="52px" />
<Input type="text" :placeholder="placeholder" class="text-medium" />
</div>
<Button content="Zoek" :buttonAction="searchInput" />
<Button :content="buttonText" :buttonAction="searchInput" />
</div>
</Box>
</div>
Expand Down Expand Up @@ -51,6 +51,10 @@
type: String,
default: 'default',
},
buttonText: {
type: String,
default: 'Button',
},
},
};
Expand Down
2 changes: 1 addition & 1 deletion src/resources/vue/pages/index.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<template>
<div class="terminal-content">
<span class="terminal-title">Scan uw pas om te lenen, <br> of een artikel om terug te brengen</span>
<TerminalScan text="" icon="scan-icon" direction="row" placeholder="101010101" />
<TerminalScan text="" buttonText="Zoeken" icon="scan-icon" direction="row" placeholder="101010101" />
</div>
</template>
<script>
Expand Down

0 comments on commit 61aa5cd

Please sign in to comment.