diff --git a/app/routes/settings.js b/app/routes/settings.js
index 2b780dc..b2621e9 100644
--- a/app/routes/settings.js
+++ b/app/routes/settings.js
@@ -10,10 +10,13 @@ export default Route.extend({
actions: {
updateName(val) {
- this.settings.set('userName', val)
+ this.settings.set('userName', val);
},
toggleMode() {
this.settings.toggleProperty('isDark');
+ },
+ toggleProvocation() {
+ this.settings.toggleProperty('showProvocation');
}
}
});
diff --git a/app/routes/tasks.js b/app/routes/tasks.js
index 6c74252..6293718 100644
--- a/app/routes/tasks.js
+++ b/app/routes/tasks.js
@@ -1,4 +1,11 @@
import Route from '@ember/routing/route';
+import {storageFor} from 'ember-local-storage';
export default Route.extend({
+ settings: storageFor('settings'),
+
+ setupController(controller) {
+ this._super(...arguments);
+ controller.set('settings', this.settings.content);
+ }
});
diff --git a/app/storages/settings.js b/app/storages/settings.js
index 383434c..6be0d35 100644
--- a/app/storages/settings.js
+++ b/app/storages/settings.js
@@ -7,7 +7,8 @@ Storage.reopenClass({
return {
isDark: true,
userName: 'Fer',
- fontSize: 1
+ fontSize: 1,
+ showProvocation: false
};
}
});
diff --git a/app/styles/components/_settings.scss b/app/styles/components/_settings.scss
index 3b8a1e7..97922b7 100644
--- a/app/styles/components/_settings.scss
+++ b/app/styles/components/_settings.scss
@@ -5,3 +5,11 @@ input[type=checkbox] {
input {
@extend .text-dark;
}
+
+.on-label {
+ margin-left: 1rem;
+}
+
+.x-toggle-component {
+ justify-content: flex-start;
+}
\ No newline at end of file
diff --git a/app/templates/settings.hbs b/app/templates/settings.hbs
index 7ec9c03..de8ea28 100644
--- a/app/templates/settings.hbs
+++ b/app/templates/settings.hbs
@@ -11,10 +11,31 @@
+
+
+
+
+
{{outlet}}
diff --git a/app/templates/tasks.hbs b/app/templates/tasks.hbs
index ac4ccb8..2849d30 100644
--- a/app/templates/tasks.hbs
+++ b/app/templates/tasks.hbs
@@ -4,7 +4,9 @@
-
+ {{#if settings.showProvocation}}
+
+ {{/if}}
diff --git a/config/environment.js b/config/environment.js
index 6722413..c23c0ba 100644
--- a/config/environment.js
+++ b/config/environment.js
@@ -39,6 +39,11 @@ module.exports = function(environment) {
// ENV.APP.LOG_TRANSITIONS = true;
// ENV.APP.LOG_TRANSITIONS_INTERNAL = true;
// ENV.APP.LOG_VIEW_LOOKUPS = true;
+ ENV['ember-a11y-testing'] = {
+ componentOptions: {
+ turnAuditOff: true
+ }
+ }
}
if (environment === 'test') {
diff --git a/electron-app/package-lock.json b/electron-app/package-lock.json
index 538687c..78e7191 100644
--- a/electron-app/package-lock.json
+++ b/electron-app/package-lock.json
@@ -1,6 +1,6 @@
{
"name": "rcps-ember",
- "version": "1.1.1",
+ "version": "1.1.3",
"lockfileVersion": 1,
"requires": true,
"dependencies": {
diff --git a/electron-app/package.json b/electron-app/package.json
index 238573d..8df54b9 100644
--- a/electron-app/package.json
+++ b/electron-app/package.json
@@ -1,7 +1,7 @@
{
"name": "rcps-ember",
"productName": "rcps-ember",
- "version": "1.1.3",
+ "version": "1.1.4",
"description": "App to check status of INS, and turn recording on/off",
"main": "src/index.js",
"scripts": {
diff --git a/electron-app/src/index.js b/electron-app/src/index.js
index a651bef..db6a466 100644
--- a/electron-app/src/index.js
+++ b/electron-app/src/index.js
@@ -39,7 +39,7 @@ app.on('ready', () => {
mainWindow = new BrowserWindow({
width: 1000,
height: 900,
- frame: false,
+ frame: true,
webPreferences: {
nodeIntegration: true
}
diff --git a/package-lock.json b/package-lock.json
index d24c40d..31a09ac 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -1,6 +1,6 @@
{
"name": "rcps-ember",
- "version": "1.1.1",
+ "version": "1.1.3",
"lockfileVersion": 1,
"requires": true,
"dependencies": {
diff --git a/package.json b/package.json
index 85b3dec..c095990 100644
--- a/package.json
+++ b/package.json
@@ -2,7 +2,7 @@
"name": "rcps-ember",
"procuctName": "My RC+S",
"description": "App to check status of INS, and turn recording on/off",
- "version": "1.1.3",
+ "version": "1.1.4",
"private": true,
"author": {
"name": "Brown CCV",
diff --git a/public/locales/en-se/translation.json b/public/locales/en-se/translation.json
index 5cbf9d2..c07c896 100644
--- a/public/locales/en-se/translation.json
+++ b/public/locales/en-se/translation.json
@@ -35,7 +35,8 @@
"dark-mode": "Dark mode",
"set-theme": "Set theme",
"language": "Change language",
- "set-user": "Set user name"
+ "set-user": "Set user name",
+ "show-provocation": "Provocation Task Launcher"
},
"record": {
"on-demand-recording": "On demand recording",