File tree Expand file tree Collapse file tree 2 files changed +12
-7
lines changed
src/Frontend/src/components Expand file tree Collapse file tree 2 files changed +12
-7
lines changed Original file line number Diff line number Diff line change 11<script setup lang="ts">
22const model = defineModel <string >({ required: true });
3+ defineProps ({
4+ placeholder: {
5+ type: String ,
6+ default: " Filter by name..." , // Default value
7+ },
8+ });
39 </script >
410
511<template >
612 <div role =" search" aria-label =" filter" class =" filter-input" >
7- <input type =" search" placeholder =" Filter by name... " aria-label =" filter by name" class =" form-control-static filter-input" v-model =" model" />
13+ <input type =" search" : placeholder =" placeholder " aria-label =" filter by name" class =" form-control-static filter-input" v-model =" model" />
814 </div >
915</template >
1016
Original file line number Diff line number Diff line change 11<script setup lang="ts">
22import { ExtendedFailedMessage } from " @/resources/FailedMessage" ;
33import CopyToClipboard from " @/components/CopyToClipboard.vue" ;
4+ import FilterInput from " @/components/FilterInput.vue" ;
45import { computed , ref } from " vue" ;
56const props = defineProps <{
67 message: ExtendedFailedMessage ;
@@ -26,7 +27,9 @@ const filteredHeaders = computed(() => {
2627 <div class =" col" >
2728 <div class =" text-search-container" >
2829 <div class =" text-search" >
29- <input type =" search" aria-label =" Filter by name" v-model =" searchTerm" class =" form-control format-text" placeholder =" Search for a header key or value..." />
30+ <div class =" filter-group" >
31+ <FilterInput v-model =" searchTerm" aria-label =" Filter by name" :placeholder =" 'Search for a header key or value...'" />
32+ </div >
3033 </div >
3134 </div >
3235 </div >
@@ -76,11 +79,7 @@ const filteredHeaders = computed(() => {
7679 width : 100% ;
7780 max-width : 40rem ;
7881}
79- .format-text {
80- font-weight : unset ;
81- font-size : 14px ;
82- min-width : 120px ;
83- }
82+
8483.filters {
8584 background-color : #f3f3f3 ;
8685 margin-top : 5px ;
You can’t perform that action at this time.
0 commit comments