feat: 🎸 Add sqlite handler and parser (#2933)
* feat: 🎸 Add sqlite handler and parser ✅ Closes: https://hashicorp.atlassian.net/browse/ICU-17410
This commit is contained in:
1 parent
8abed1a809
commit
e0982da744
33 files changed
+1692
-111
No files matched your search
@@ -7,6 +7,7 @@ import Controller from '@ember/controller';
|
||||
import { service } from '@ember/service';
|
||||
import { getOwner } from '@ember/application';
|
||||
import { action } from '@ember/object';
|
||||
import { loading } from 'ember-loading';
|
||||
import { defaultValidator } from 'ember-a11y-refocus';
|
||||
import { paramValueFinder } from 'admin/utils/param-value-finder';
|
||||
|
||||
@@ -33,6 +34,7 @@ export default class ApplicationController extends Controller {
|
||||
@service featureEdition;
|
||||
@service flashMessages;
|
||||
@service router;
|
||||
@service sqlite;
|
||||
|
||||
/**
|
||||
* Returns available themes.
|
||||
@@ -113,6 +115,18 @@ export default class ApplicationController extends Controller {
|
||||
}
|
||||
}
|
||||
|
||||
@action
|
||||
@loading
|
||||
async downloadDatabase() {
|
||||
await this.sqlite.downloadDatabase();
|
||||
}
|
||||
|
||||
@action
|
||||
async clearDatabase() {
|
||||
await this.sqlite.clearDatabase();
|
||||
this.router.refresh();
|
||||
}
|
||||
|
||||
/**
|
||||
* Add custom route change validation to prevent refocus when
|
||||
* user is attempting to search, filter, or sort.
|
||||
|
||||
Reference in new issue
Block a user