Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
Frontend
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Package Registry
Model registry
Operate
Terraform modules
Monitor
Service Desk
Analyze
Contributor analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
HUB Terra
SMS
Frontend
Commits
7c910312
Commit
7c910312
authored
2 years ago
by
Tim Eder
Committed by
Marc Hanisch
2 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Move (Extended) Search to tab bar for platform and contacts
parent
3534b3f6
No related branches found
Branches containing commit
No related tags found
Tags containing commit
2 merge requests
!296
Merge develop for staging release
,
!254
Move (Extended) Search to tab bar for platform and contacts
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
components/platforms/PlatformSearch.vue
+100
-105
100 additions, 105 deletions
components/platforms/PlatformSearch.vue
store/appbar.ts
+5
-6
5 additions, 6 deletions
store/appbar.ts
with
105 additions
and
111 deletions
components/platforms/PlatformSearch.vue
+
100
−
105
View file @
7c910312
...
...
@@ -37,114 +37,108 @@ permissions and limitations under the Licence.
<ProgressIndicator
v-model=
"isLoading"
/>
<v-c
ard
>
<v-
container>
<v-tabs
v-model=
"activeTab"
>
<v-tab>
Search
</v-tab
>
<v-tab
>
Extended Search
</v-tab
>
</v-tabs
>
<v-tabs-items
v-model=
"activeTab"
>
<v-tab-item
:eager=
"true"
>
<v-row>
<v-col
cols=
"12"
md=
"5"
>
<v-text-field
v-model=
"searchedText"
label=
"Search term"
hint=
"Please enter at least 3 characters
"
@
keydown.enter=
"basicSearch
"
/
>
<
/
v-
col>
<v-col
cols=
"5"
align-self=
"center
"
<v-c
ontainer
>
<v-
tabs-items
v-model=
"activeTab"
>
<v-tab
-item
:eager=
"true"
>
<v-row
>
<v-col
cols=
"12"
md=
"5"
>
<v-text-field
v-model=
"searchedText"
label=
"Search term"
hint=
"Please enter at least 3 characters"
@
keydown.enter=
"basicSearch"
/>
</v-col>
<v-col
cols=
"5
"
align-self=
"center
"
>
<v-
btn
color=
"primary"
small
@
click=
"basicSearch
"
>
<v-btn
color=
"primary"
small
@
click=
"basicSearch"
>
Search
</v-btn>
<v-btn
text
small
@
click=
"clearBasicSearch"
>
Clear
</v-btn>
</v-col>
<v-col
align-self=
"center"
class=
"text-right"
Search
</v-btn>
<v-btn
text
small
@
click=
"clearBasicSearch"
>
<slot
name=
"actions"
/>
</v-col>
</v-row>
</v-tab-item>
<v-tab-item
:eager=
"true"
>
<v-row>
<v-col
cols=
"12"
md=
"6"
>
<v-text-field
v-model=
"searchedText"
label=
"Search term"
hint=
"Please enter at least 3 characters"
@
keydown.enter=
"extendedSearch"
/>
</v-col>
</v-row>
<v-row>
<v-col
cols=
"12"
md=
"3"
>
<ManufacturerSelect
v-model=
"selectedManufacturers"
label=
"Select a manufacturer"
/>
</v-col>
</v-row>
<v-row>
<v-col
cols=
"12"
md=
"3"
>
<StatusSelect
v-model=
"selectedStates"
label=
"Select a status"
/>
</v-col>
</v-row>
<v-row>
<v-col
cols=
"12"
md=
"3"
>
<PlatformTypeSelect
v-model=
"selectedPlatformTypes"
label=
"Select a platform type"
/>
</v-col>
</v-row>
<v-row
v-if=
"$auth.loggedIn"
>
<v-col
cols=
"12"
md=
"3"
>
<v-checkbox
v-model=
"selectOnlyOwnPlatforms"
label=
"Only own platforms"
/>
</v-col>
</v-row>
<v-row>
<v-col
cols=
"5"
align-self=
"center"
Clear
</v-btn>
</v-col>
<v-col
align-self=
"center"
class=
"text-right"
>
<slot
name=
"actions"
/>
</v-col>
</v-row>
</v-tab-item>
<v-tab-item
:eager=
"true"
>
<v-row>
<v-col
cols=
"12"
md=
"6"
>
<v-text-field
v-model=
"searchedText"
label=
"Search term"
hint=
"Please enter at least 3 characters"
@
keydown.enter=
"extendedSearch"
/>
</v-col>
</v-row>
<v-row>
<v-col
cols=
"12"
md=
"3"
>
<ManufacturerSelect
v-model=
"selectedManufacturers"
label=
"Select a manufacturer"
/>
</v-col>
</v-row>
<v-row>
<v-col
cols=
"12"
md=
"3"
>
<StatusSelect
v-model=
"selectedStates"
label=
"Select a status"
/>
</v-col>
</v-row>
<v-row>
<v-col
cols=
"12"
md=
"3"
>
<PlatformTypeSelect
v-model=
"selectedPlatformTypes"
label=
"Select a platform type"
/>
</v-col>
</v-row>
<v-row
v-if=
"$auth.loggedIn"
>
<v-col
cols=
"12"
md=
"3"
>
<v-checkbox
v-model=
"selectOnlyOwnPlatforms"
label=
"Only own platforms"
/>
</v-col>
</v-row>
<v-row>
<v-col
cols=
"5"
align-self=
"center"
>
<v-btn
color=
"primary"
small
@
click=
"extendedSearch"
>
<v-btn
color=
"primary"
small
@
click=
"extendedSearch"
>
Search
</v-btn>
<v-btn
text
small
@
click=
"clearExtendedSearch"
>
Clear
</v-btn>
</v-col>
<v-col
align-self=
"center"
class=
"text-right"
Search
</v-btn>
<v-btn
text
small
@
click=
"clearExtendedSearch"
>
<slot
name=
"actions"
/>
</v-col>
</v-row>
</v-tab-item>
</v-tabs-items>
</v-container>
</v-card>
Clear
</v-btn>
</v-col>
<v-col
align-self=
"center"
class=
"text-right"
>
<slot
name=
"actions"
/>
</v-col>
</v-row>
</v-tab-item>
</v-tabs-items>
</v-container>
</div>
</
template
>
...
...
@@ -197,7 +191,8 @@ import ProgressIndicator from '@/components/ProgressIndicator.vue'
'
setSelectedSearchPlatformTypes
'
,
'
setOnlyOwnPlatforms
'
,
'
setSearchText
'
])
]),
...
mapActions
(
'
appbar
'
,
[
'
initPlatformsIndexAppBar
'
,
'
setDefaults
'
])
}
})
export
default
class
PlatformSearch
extends
Vue
{
...
...
This diff is collapsed.
Click to expand it.
store/appbar.ts
+
5
−
6
View file @
7c910312
...
...
@@ -175,17 +175,16 @@ const actions = {
},
initContactsIndexAppBar
({
commit
}:
{
commit
:
Commit
})
{
commit
(
'
setTitle
'
,
'
Contacts
'
)
commit
(
'
setTabs
'
,
[])
commit
(
'
setTabs
'
,
[
'
Search
'
])
commit
(
'
setCancelBtnHidden
'
,
true
)
commit
(
'
setSaveBtnHidden
'
,
true
)
},
initPlatformsIndexAppBar
({
commit
}:
{
commit
:
Commit
})
{
commit
(
'
setTitle
'
,
'
Platforms
'
)
// commit('setTabs', [ //todo remove
// 'Search',
// 'Extended Search'
// ])
commit
(
'
setTabs
'
,
[])
commit
(
'
setTabs
'
,
[
'
Search
'
,
'
Extended Search
'
])
commit
(
'
setCancelBtnHidden
'
,
true
)
commit
(
'
setSaveBtnHidden
'
,
true
)
},
...
...
This diff is collapsed.
Click to expand it.
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