Skip to content

Commit

Permalink
remove pnpm warning modal
Browse files Browse the repository at this point in the history
  • Loading branch information
bwp91 committed Nov 16, 2024
1 parent 7fe75a3 commit 67b9559
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 21 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ All notable changes to `homebridge-config-ui-x` will be documented in this file.
- show pairing status for bridges around the ui
- consistent labels for sensor-type accessories
- update default dashboard layout
- remove pnpm warning modal

### Other Changes

Expand Down
3 changes: 0 additions & 3 deletions ui/src/app/modules/status/status.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,6 @@ <h3 class="primary-text m-0">{{ 'menu.label_status' | translate }}</h3>
</div>
<div class="row mb-auto">
<div class="col-md-12 text-center px-4 pt-1 pt-lg-2 pb-3 pb-lg-2 grey-text">
<a class="red-text" href="javascript: void(0);" (click)="openPnpmModal()" *ngIf="$settings.env.usePnpm">
<i class="fas fa-fw fa-warning"></i
></a>
<!-- The below copyright notice shall be included and displayed on all copies or substantial portions of this software. -->
<small>
&copy; 2024 &middot;
Expand Down
18 changes: 0 additions & 18 deletions ui/src/app/modules/status/status.component.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { AuthService } from '@/app/core/auth/auth.service'
import { InformationComponent } from '@/app/core/components/information/information.component'
import { NotificationService } from '@/app/core/notification.service'
import { SettingsService } from '@/app/core/settings.service'
import { IoNamespace, WsService } from '@/app/core/ws.service'
Expand Down Expand Up @@ -283,23 +282,6 @@ export class StatusComponent implements OnInit, OnDestroy {
})
}

openPnpmModal() {
const ref = this.$modal.open(InformationComponent, {
size: 'lg',
backdrop: 'static',
})
ref.componentInstance.title = 'pnpm'
ref.componentInstance.subtitle = 'This warning is visible as you are using the pnpm package manager.'
ref.componentInstance.message = 'The next version of Homebridge UI will no longer support pnpm.'
+ ' You should consider updating your Homebridge instance to use npm instead.'
+ ' This can be done by following the update instructions in the Homebridge APT package documentation.'
+ ' See the link below for more information.'
ref.componentInstance.faIconClass = 'fab fa-fw fa-npm red-text'

ref.componentInstance.ctaButtonLabel = 'Update Info'
ref.componentInstance.ctaButtonLink = 'https://github.com/homebridge/homebridge-apt-pkg/blob/latest/README.md#using-apt'
}

ngOnDestroy() {
this.io.end()
this.saveWidgetsEvent.complete()
Expand Down

0 comments on commit 67b9559

Please sign in to comment.