diff --git a/app/components/progress-bar.hbs b/app/components/progress-bar.hbs
index e9220e79..a60ef1db 100644
--- a/app/components/progress-bar.hbs
+++ b/app/components/progress-bar.hbs
@@ -12,40 +12,15 @@
step='10'
{{on 'change' this.onChange}}
{{on 'input' this.onInput}}
- disabled={{not this.isEditable}}
/>
- {{#if this.isEditable}}
- {{@value}}
- {{else}}
-
-
-
-
- {{/if}}
+ {{@value}}
+
\ 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);
}
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}}
-
-
-
-
-
-
{{@message}}
- {{#if @isUpdating}}
-
- {{/if}}
- {{#if @buttonRequired}}
-
- {{if (eq @dev true) "Don't assign task" "Proceed" }}
-
- {{#if @dev}}
-
- Assign task
-
- {{/if}}
- {{/if}}
+
+
+
+
+
+
{{@message}}
+ {{#if @isUpdating}}
+
+ {{/if}}
+ {{#if @buttonRequired}}
+
+ Proceed
+
+ {{#if @dev}}
+
+ Assign task
+
+ {{/if}}
+ {{/if}}
+
-
{{/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}}
-
+
You have no task in progress! click below to fetch tasks
{},
onTaskUpdate: () => {},
diff --git a/tests/integration/components/tasks/modal-test.js b/tests/integration/components/tasks/modal-test.js
index f4b62a6f..655eed7a 100644
--- a/tests/integration/components/tasks/modal-test.js
+++ b/tests/integration/components/tasks/modal-test.js
@@ -200,8 +200,7 @@ module('Integration | Component | tasks/modal', function (hooks) {
showModal: true,
buttonRequired: true,
dev: false,
- message:
- 'This task will be marked as done and a new task will be assigned to you',
+ message: 'This task will be marked as Done',
});
await render(hbs`
@@ -219,11 +218,7 @@ module('Integration | Component | tasks/modal', function (hooks) {
assert.dom('[data-test-notAssignBtn]').exists();
assert.dom('[data-test-notAssignBtn]').hasProperty('button');
- assert
- .dom('[data-test-title]')
- .hasText(
- 'This task will be marked as done and a new task will be assigned to you'
- );
+ assert.dom('[data-test-title]').hasText('This task will be marked as Done');
assert.dom('[data-test-notAssignBtn]').hasText('Proceed');
});
});