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 1
1
<script setup lang="ts">
2
2
const model = defineModel <string >({ required: true });
3
+ defineProps ({
4
+ placeholder: {
5
+ type: String ,
6
+ default: " Filter by name..." , // Default value
7
+ },
8
+ });
3
9
</script >
4
10
5
11
<template >
6
12
<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" />
8
14
</div >
9
15
</template >
10
16
Original file line number Diff line number Diff line change 1
1
<script setup lang="ts">
2
2
import { ExtendedFailedMessage } from " @/resources/FailedMessage" ;
3
3
import CopyToClipboard from " @/components/CopyToClipboard.vue" ;
4
+ import FilterInput from " @/components/FilterInput.vue" ;
4
5
import { computed , ref } from " vue" ;
5
6
const props = defineProps <{
6
7
message: ExtendedFailedMessage ;
@@ -26,7 +27,9 @@ const filteredHeaders = computed(() => {
26
27
<div class =" col" >
27
28
<div class =" text-search-container" >
28
29
<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 >
30
33
</div >
31
34
</div >
32
35
</div >
@@ -76,11 +79,7 @@ const filteredHeaders = computed(() => {
76
79
width : 100% ;
77
80
max-width : 40rem ;
78
81
}
79
- .format-text {
80
- font-weight : unset ;
81
- font-size : 14px ;
82
- min-width : 120px ;
83
- }
82
+
84
83
.filters {
85
84
background-color : #f3f3f3 ;
86
85
margin-top : 5px ;
You can’t perform that action at this time.
0 commit comments