From 386910bdd3dff5c6bd79c8ec44e73016ca019d91 Mon Sep 17 00:00:00 2001 From: Jeldrik Hanschke Date: Sat, 4 Nov 2023 15:40:02 +0100 Subject: [PATCH] remove remaining usage of action helper (#723) --- .template-lintrc.js | 1 - app/controllers/poll/participation.js | 5 +++++ app/templates/create/meta.hbs | 2 +- app/templates/create/settings.hbs | 4 ++-- app/templates/poll/participation.hbs | 2 +- 5 files changed, 9 insertions(+), 5 deletions(-) diff --git a/.template-lintrc.js b/.template-lintrc.js index 37ed66d..0a65960 100644 --- a/.template-lintrc.js +++ b/.template-lintrc.js @@ -3,7 +3,6 @@ module.exports = { extends: 'recommended', rules: { - 'no-action': false, 'no-implicit-this': { allow: ['scroll-first-invalid-element-into-view-port'], }, diff --git a/app/controllers/poll/participation.js b/app/controllers/poll/participation.js index 3e6adb8..d8701e7 100644 --- a/app/controllers/poll/participation.js +++ b/app/controllers/poll/participation.js @@ -70,4 +70,9 @@ export default class PollParticipationController extends Controller { queryParams: { encryptionKey }, }); } + + @action + resetSavingStatus() { + this.savingFailed = false; + } } diff --git a/app/templates/create/meta.hbs b/app/templates/create/meta.hbs index fde9468..5c8483e 100644 --- a/app/templates/create/meta.hbs +++ b/app/templates/create/meta.hbs @@ -38,7 +38,7 @@
- +
diff --git a/app/templates/create/settings.hbs b/app/templates/create/settings.hbs index 2916914..bb253b5 100644 --- a/app/templates/create/settings.hbs +++ b/app/templates/create/settings.hbs @@ -18,7 +18,7 @@