Skip to content

Commit 42e8164

Browse files
committed
make incompatible installation overridable
1 parent 10a31f1 commit 42e8164

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

src/app/apps/apps.component.ts

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -143,12 +143,17 @@ export class AppsComponent implements OnInit, OnDestroy {
143143
if (!device) return false;
144144
const incompatible = await this.appManager.checkIncompatibility(device, item);
145145
if (incompatible) {
146-
MessageDialogComponent.open(this.modalService, {
146+
const incompatibleConfirm = MessageDialogComponent.open(this.modalService, {
147147
title: 'Incompatible App',
148-
message: `App ${item.title} is marked not compatible with ${device.name}.`,
149-
positive: 'Close',
148+
message: `App ${item.title} is marked not compatible with ${device.name}. It may not work properly or not at all.`,
149+
positive: 'Install Anyway',
150+
positiveStyle: 'danger',
151+
negative: 'Cancel',
152+
autofocus: 'negative',
150153
});
151-
return false;
154+
if (!await incompatibleConfirm.result.catch(() => false)) {
155+
return false;
156+
}
152157
}
153158
const manifest = channel === 'stable' ? item.manifest : item.manifestBeta;
154159
if (!manifest) {

0 commit comments

Comments
 (0)