Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
U
UI
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Coscine
frontend
apps
UI
Commits
87fd5b41
Commit
87fd5b41
authored
1 year ago
by
Benedikt Heinrichs
Browse files
Options
Downloads
Patches
Plain Diff
Fix: Use Debounce on Search
parent
50e49d74
No related branches found
No related tags found
1 merge request
!322
merge dev into main
Pipeline
#1228384
passed with warnings
1 year ago
Stage: build
Stage: test
Stage: code-analysis
Changes
1
Pipelines
3
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/modules/resource/components/create-resource/ApplicationProfile.vue
+10
-8
10 additions, 8 deletions
...esource/components/create-resource/ApplicationProfile.vue
with
10 additions
and
8 deletions
src/modules/resource/components/create-resource/ApplicationProfile.vue
+
10
−
8
View file @
87fd5b41
...
...
@@ -149,6 +149,7 @@ import type {
import
useVuelidate
from
"
@vuelidate/core
"
;
import
{
required
,
url
}
from
"
@vuelidate/validators
"
;
import
CreateAPModal
from
"
./modals/CreateAPModal.vue
"
;
import
{
useDebounceFn
}
from
"
@vueuse/core
"
;
export
default
defineComponent
({
components
:
{
...
...
@@ -190,7 +191,7 @@ export default defineComponent({
reachedEndOfAPList
:
()
=>
true
,
valid
:
(
_
:
boolean
)
=>
true
,
},
setup
(
props
)
{
setup
(
props
,
ctx
)
{
const
resourceStore
=
useResourceStore
();
const
userStore
=
useUserStore
();
/*
...
...
@@ -208,7 +209,14 @@ export default defineComponent({
},
};
const
v$
=
useVuelidate
(
rules
,
state
);
return
{
resourceStore
,
userStore
,
v$
};
const
applicationProfileSearchChange
=
useDebounceFn
(
(
searchTerm
:
string
)
=>
{
ctx
.
emit
(
"
applicationProfileSearchChange
"
,
searchTerm
);
},
500
,
);
return
{
applicationProfileSearchChange
,
resourceStore
,
userStore
,
v$
};
},
data
()
{
...
...
@@ -249,12 +257,6 @@ export default defineComponent({
},
methods
:
{
/**
* Trigger the search term change in the parent component.
*/
applicationProfileSearchChange
(
searchTerm
:
string
)
{
this
.
$emit
(
"
applicationProfileSearchChange
"
,
searchTerm
);
},
/**
* Initializes the content of the selected application profile based on the current state of the resource for creation.
*/
...
...
This diff is collapsed.
Click to expand it.
CoscineBot
@CoscineBot
mentioned in commit
bf6fdabb
·
1 year ago
mentioned in commit
bf6fdabb
mentioned in commit bf6fdabbe9bc9891ad33de812829977cb87d844d
Toggle commit list
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment