• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

geonetwork / geonetwork-ui / 17860518616

19 Sep 2025 02:01PM UTC coverage: 84.469% (+0.07%) from 84.4%
17860518616

push

github

web-flow
Merge pull request #1355 from geonetwork/dh-download-links-forkjoin-inner-errors

[Datahub]: download links fixes on errors

3795 of 5026 branches covered (75.51%)

Branch coverage included in aggregate %.

3 of 3 new or added lines in 1 file covered. (100.0%)

113 existing lines in 31 files now uncovered.

10824 of 12281 relevant lines covered (88.14%)

353.76 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

50.0
/libs/ui/inputs/src/lib/star-toggle/star-toggle.component.ts
1
import {
1✔
2
  ChangeDetectionStrategy,
3
  Component,
4
  ElementRef,
5
  EventEmitter,
6
  Input,
7
  Output,
8
  ViewChild,
9
} from '@angular/core'
10
import { propagateToDocumentOnly } from '@geonetwork-ui/util/shared'
1✔
11
import { NgIcon, provideIcons, provideNgIconsConfig } from '@ng-icons/core'
1✔
12
import { CommonModule } from '@angular/common'
1✔
13
import { matStar, matStarBorder } from '@ng-icons/material-icons/baseline'
1✔
14
import { ButtonComponent } from '../button/button.component'
1✔
15
import { TranslateDirective } from '@ngx-translate/core'
1✔
16

17
@Component({
18
  selector: 'gn-ui-star-toggle',
19
  templateUrl: './star-toggle.component.html',
20
  styleUrls: ['./star-toggle.component.css'],
21
  changeDetection: ChangeDetectionStrategy.OnPush,
22
  standalone: true,
23
  imports: [CommonModule, NgIcon, ButtonComponent, TranslateDirective],
24
  viewProviders: [
25
    provideIcons({ matStar, matStarBorder }),
26
    provideNgIconsConfig({
27
      size: '1.5em',
28
    }),
29
  ],
30
})
31
export class StarToggleComponent {
1✔
32
  @Input() toggled!: boolean
33
  @Input() disabled = false
1✔
34
  @Input() displayLabel = false
1✔
35
  @Output() newValue = new EventEmitter<boolean>()
1✔
36
  @ViewChild('starOverlay') overlay: ElementRef
37

38
  toggle(event: Event) {
39
    if (!this.disabled) {
×
UNCOV
40
      this.toggled = !this.toggled
×
41
      if (this.toggled) {
×
UNCOV
42
        const anim = this.overlay.nativeElement.getAnimations()[0]
×
43
        anim.cancel()
×
44
        anim.play()
×
45
      }
UNCOV
46
      this.newValue.emit(this.toggled)
×
47
    }
UNCOV
48
    propagateToDocumentOnly(event)
×
UNCOV
49
    event.preventDefault()
×
50
  }
51
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc