From f6fede86e7c81f2605e17dadc2e72a24ae4e413c Mon Sep 17 00:00:00 2001 From: Shubham Sharma <68867418+skv93-coder@users.noreply.github.com> Date: Tue, 20 Feb 2024 17:07:12 +0530 Subject: [PATCH 1/2] hidden not needed popups (#577) * Removed fetch test green button * Hidden green pop up * Hide find task button --------- Co-authored-by: Shubham Sharma --- app/components/task/modal.hbs | 57 ++++++++++++------- app/components/tasks.hbs | 2 +- app/constants/tasks.js | 3 +- app/styles/tasks.css | 3 + tests/integration/components/tasks-test.js | 4 +- .../components/tasks/modal-test.js | 9 +-- 6 files changed, 45 insertions(+), 33 deletions(-) diff --git a/app/components/task/modal.hbs b/app/components/task/modal.hbs index 63814ce2..b7a2ce67 100644 --- a/app/components/task/modal.hbs +++ b/app/components/task/modal.hbs @@ -1,24 +1,39 @@ {{#if @showModal}} -
- {{/if}} \ No newline at end of file diff --git a/app/components/tasks.hbs b/app/components/tasks.hbs index f7329a3b..43bd28e1 100644 --- a/app/components/tasks.hbs +++ b/app/components/tasks.hbs @@ -1,7 +1,7 @@
{{#if @dev}} {{#if @noInProgressTask}} -
+ \ No newline at end of file diff --git a/app/components/progress-bar.js b/app/components/progress-bar.js index 6aea892e..356ec898 100644 --- a/app/components/progress-bar.js +++ b/app/components/progress-bar.js @@ -4,29 +4,9 @@ import { action } from '@ember/object'; import { debounce } from '@ember/runloop'; export default class ProgressBarComponent extends Component { - @tracked isEditable = false; @tracked value = this.args.value; - lastEditTime = null; - - @action turnEditModeOn() { - this.isEditable = true; - this.lastEditTime = Date.now(); - this.setEditableToFalse(); - } - - setEditableToFalse() { - setTimeout(() => { - const timeDelta = Date.now() - this.lastEditTime; - if (this.isEditable && timeDelta >= 5000) { - this.isEditable = false; - } else if (this.isEditable) { - this.setEditableToFalse(); - } - }, 5000); - } @action onInput(e) { - this.lastEditTime = Date.now(); this.value = e.target.value; if (this.args.onInput) { this.args.onInput(this.value); @@ -34,7 +14,6 @@ export default class ProgressBarComponent extends Component { } @action onChange(e) { - this.lastEditTime = Date.now(); if (this.args.onChange) { debounce(this, this.debouncedChange, e, 600); }