feat: 🎸 add disconnect button to error page

This commit is contained in:
Randall Morey committed 2021-02-11 19:01:45 -05:00
1 parent 29e9a6a690
commit 3bfde4c28c
8 files changed
+46 -3

No files matched your search

+10
View File
@@ -1,6 +1,7 @@
import Service from '@ember/service';
import { assert } from '@ember/debug';
import { inject as service } from '@ember/service';
import { notifyError } from 'core/decorators/notify';
export default class OriginService extends Service {
@@ -72,4 +73,13 @@ export default class OriginService extends Service {
}
}
/**
* Resets the origin.
*/
@notifyError(({ message }) => message, { catch: true })
async resetOrigin() {
this.rendererOrigin = null;
await this.ipc.invoke('resetOrigin');
}
}