Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
scc-net
netvs
netvs-core
Commits
10ff2f34
Commit
10ff2f34
authored
Jun 10, 2021
by
janis.streib
🦉
Browse files
FIX: make "org" a valid descriminator
parent
9a6dbc6a
Pipeline
#153372
passed with stages
in 9 minutes and 49 seconds
Changes
1
Pipelines
5
Hide whitespace changes
Inline
Side-by-side
frontend/src/components/GlobalSearch.vue
View file @
10ff2f34
...
...
@@ -350,6 +350,8 @@ export default {
return
parts
[
0
]
case
'
macauth
'
:
return
parts
[
0
]
case
'
org
'
:
return
parts
[
0
]
}
return
null
},
...
...
@@ -432,7 +434,7 @@ export default {
this
.
dispatch_search
(
SearchService
.
searchRRDataRegex
(
this
.
$store
.
state
.
netdb_axios_config
,
term
,
null
),
'
dns.record
'
)
}
}
else
if
(
this
.
descriminator
===
'
org
'
)
{
this
.
dispatch_search
(
SearchService
.
searchOURegex
(
this
.
$store
.
state
.
netdb_axios_config
,
term
,
true
),
'
org.unit
'
)
this
.
dispatch_search
(
SearchService
.
searchOURegex
(
this
.
$store
.
state
.
netdb_axios_config
,
term
,
null
),
'
org.unit
'
)
this
.
dispatch_search
(
SearchService
.
searchOUDirect
(
this
.
$store
.
state
.
netdb_axios_config
,
term
),
'
org.unit
'
)
}
this
.
descriminator
=
null
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment