Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
stork
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
145
Issues
145
List
Boards
Labels
Service Desk
Milestones
Merge Requests
2
Merge Requests
2
Operations
Operations
Incidents
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
ISC Open Source Projects
stork
Commits
331a9a52
Commit
331a9a52
authored
May 07, 2020
by
Tomek Mrugalski
🛰
Committed by
Tomek Mrugalski
Oct 27, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[
#164
] hostsPageComponent test fixed
parent
9996fb51
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
8 deletions
+17
-8
webui/src/app/hosts-page/hosts-page.component.ts
webui/src/app/hosts-page/hosts-page.component.ts
+17
-8
No files found.
webui/src/app/hosts-page/hosts-page.component.ts
View file @
331a9a52
...
...
@@ -58,14 +58,19 @@ export class HostsPageComponent implements OnInit {
this
.
updateOurQueryParams
(
ssParams
)
// subscribe to subsequent changes to query params
this
.
route
.
queryParamMap
.
subscribe
((
params
)
=>
{
this
.
updateOurQueryParams
(
params
)
let
event
=
{
first
:
0
,
rows
:
10
}
if
(
this
.
hostsTable
)
{
event
=
this
.
hostsTable
.
createLazyLoadMetadata
()
this
.
route
.
queryParamMap
.
subscribe
(
(
params
)
=>
{
this
.
updateOurQueryParams
(
params
)
let
event
=
{
first
:
0
,
rows
:
10
}
if
(
this
.
hostsTable
)
{
event
=
this
.
hostsTable
.
createLazyLoadMetadata
()
}
this
.
loadHosts
(
event
)
},
(
error
)
=>
{
console
.
log
(
error
)
}
this
.
loadHosts
(
event
)
})
)
}
updateOurQueryParams
(
params
)
{
...
...
@@ -95,7 +100,11 @@ export class HostsPageComponent implements OnInit {
.
subscribe
((
data
)
=>
{
this
.
hosts
=
data
.
items
this
.
totalHosts
=
data
.
total
})
},
(
error
)
=>
{
console
.
log
(
error
)
}
)
}
/**
...
...
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