Skip to content

Commit

Permalink
[desktop]: Use RepeatPipe from ngxtension
Browse files Browse the repository at this point in the history
  • Loading branch information
tiagohm committed Dec 14, 2024
1 parent 12ab9a6 commit 19a1159
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions desktop/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@
"hotkeys-js": "3.13.9",
"leaflet": "1.9.4",
"ngx-moveable": "0.50.0",
"ngxtension": "4.2.0",
"primeflex": "3.3.1",
"primeicons": "7.0.0",
"primeng": "17.18.13",
Expand Down
2 changes: 2 additions & 0 deletions desktop/src/app/app.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import { FormsModule } from '@angular/forms'
import { BrowserModule } from '@angular/platform-browser'
import { BrowserAnimationsModule } from '@angular/platform-browser/animations'
import { NgxMoveableModule } from 'ngx-moveable'
import { RepeatPipe } from 'ngxtension/repeat-pipe'
import { AccordionModule } from 'primeng/accordion'
import { ConfirmationService, MessageService } from 'primeng/api'
import { BadgeModule } from 'primeng/badge'
Expand Down Expand Up @@ -212,6 +213,7 @@ import { SettingsComponent } from './settings/settings.component'
NgxMoveableModule,
OverlayPanelModule,
ProgressBarModule,
RepeatPipe,
ScrollPanelModule,
SelectButtonModule,
SidebarModule,
Expand Down
2 changes: 1 addition & 1 deletion desktop/src/shared/components/indicator.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { Component, input, model, ViewEncapsulation } from '@angular/core'
selector: 'neb-indicator',
template: `
<div class="flex flex-column align-items-center justify-content-center">
@for (item of [].constructor(count()); track $index) {
@for (item of count() | repeat; track $index) {
<span
class="indicator"
[class.selected]="$index === position()"
Expand Down

0 comments on commit 19a1159

Please sign in to comment.