From 28ee8f02af574de796527c65711c544d5c93e144 Mon Sep 17 00:00:00 2001 From: Jonas Cosandey Date: Thu, 12 Jan 2023 16:31:17 +0100 Subject: [PATCH 1/2] fix(quarterly-closure): closure states after 640 should not block editing --- addon/components/linked-models.hbs | 36 +++++++++---------- addon/components/linked-models.js | 1 - addon/components/linked-projects.hbs | 7 +--- addon/components/linked-projects.js | 1 - addon/components/project-landing-page.hbs | 26 ++++++-------- addon/components/project-landing-page.js | 6 ---- .../quarterly-closure/disabled-form-alert.hbs | 3 -- .../quarterly-closure/disabled-form-info.hbs | 4 --- .../building/edit/dwelling/edit.js | 1 - .../building/edit/entrance/edit/index.js | 1 - addon/controllers/building/edit/form.js | 1 - addon/controllers/project/form.js | 1 - addon/services/quarterly-closure.js | 7 ---- .../templates/building/edit/dwelling/edit.hbs | 4 --- .../building/edit/entrance/edit/index.hbs | 28 ++++----------- addon/templates/building/edit/form.hbs | 4 --- addon/templates/project/form.hbs | 4 --- translations/quarterly-closure/de.yaml | 19 +++++----- translations/quarterly-closure/fr.yaml | 11 +++--- 19 files changed, 48 insertions(+), 117 deletions(-) delete mode 100644 addon/components/project-landing-page.js delete mode 100644 addon/components/quarterly-closure/disabled-form-alert.hbs delete mode 100644 addon/components/quarterly-closure/disabled-form-info.hbs diff --git a/addon/components/linked-models.hbs b/addon/components/linked-models.hbs index b1883c0f..cf49458c 100644 --- a/addon/components/linked-models.hbs +++ b/addon/components/linked-models.hbs @@ -21,7 +21,7 @@ {{#each @models as |model|}} {{yield model}} - {{#if (and (not this.quarterlyClosure.formsDisabled) @removeLink)}} + {{#if @removeLink}}