Skip to content

Commit

Permalink
[#1263] Fix unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
fivitti committed Jan 24, 2024
1 parent 9e0ae51 commit e5b5702
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -440,15 +440,11 @@ describe('SharedNetworksPageComponent', () => {
expect(component.activeTabIndex).toBe(1)

component.closeTabByIndex(1)
tick()
fixture.detectChanges()

expect(component.openedSharedNetworks.length).toBe(1)
expect(component.activeTabIndex).toBe(0)

component.closeTabByIndex(0)
tick()
fixture.detectChanges()

expect(component.openedSharedNetworks.length).toBe(1)
expect(component.activeTabIndex).toBe(0)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -201,9 +201,6 @@ export class SharedNetworksPageComponent implements OnInit, OnDestroy {
* of rows to be returned, dhcp version and text for networks filtering.
*/
loadNetworks(event) {
if (this.loading) {
return
}
this.loading = true

const params = this.queryParams
Expand Down
4 changes: 0 additions & 4 deletions webui/src/app/subnets-page/subnets-page.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -290,10 +290,6 @@ export class SubnetsPageComponent implements OnInit, OnDestroy {
* of rows to be returned, dhcp version and text for subnets filtering.
*/
loadSubnets(event) {
if (this.loading) {
return
}

const params = this.queryParams
this.loading = true

Expand Down

0 comments on commit e5b5702

Please sign in to comment.