Skip to content

Commit

Permalink
make incompatible installation overridable
Browse files Browse the repository at this point in the history
  • Loading branch information
mariotaku committed Apr 1, 2024
1 parent 10a31f1 commit 42e8164
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions src/app/apps/apps.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -143,12 +143,17 @@ export class AppsComponent implements OnInit, OnDestroy {
if (!device) return false;
const incompatible = await this.appManager.checkIncompatibility(device, item);
if (incompatible) {
MessageDialogComponent.open(this.modalService, {
const incompatibleConfirm = MessageDialogComponent.open(this.modalService, {
title: 'Incompatible App',
message: `App ${item.title} is marked not compatible with ${device.name}.`,
positive: 'Close',
message: `App ${item.title} is marked not compatible with ${device.name}. It may not work properly or not at all.`,
positive: 'Install Anyway',
positiveStyle: 'danger',
negative: 'Cancel',
autofocus: 'negative',
});
return false;
if (!await incompatibleConfirm.result.catch(() => false)) {
return false;
}
}
const manifest = channel === 'stable' ? item.manifest : item.manifestBeta;
if (!manifest) {
Expand Down

0 comments on commit 42e8164

Please sign in to comment.