From bb4f0a3c01b6f50c23554dd94208930f115e78a0 Mon Sep 17 00:00:00 2001 From: Benjamin ter Kuile Date: Thu, 4 Jan 2018 20:11:19 -0300 Subject: [PATCH] Add inquiry state styling and fix showing new note in open staying modal --- addon/styles/resources/_workflow-groups.sass | 4 ++++ app/components/project/modals/edit-instance-action.coffee | 1 + 2 files changed, 5 insertions(+) diff --git a/addon/styles/resources/_workflow-groups.sass b/addon/styles/resources/_workflow-groups.sass index c8e5cd6..7b64d04 100644 --- a/addon/styles/resources/_workflow-groups.sass +++ b/addon/styles/resources/_workflow-groups.sass @@ -51,6 +51,8 @@ background-color: #ddd &.overdue background-color: #f7da00 + &.inquiry + background-color: #ffacec &.processing, &.active background-color: #cef &.rejected @@ -65,6 +67,8 @@ @extend .title-box-success &.overdue @extend .title-box-warning + &.inquiry + @extend .title-box-inquiry .modal .workflow-instance-workflow-group-container diff --git a/app/components/project/modals/edit-instance-action.coffee b/app/components/project/modals/edit-instance-action.coffee index 330bc33..fc625c2 100644 --- a/app/components/project/modals/edit-instance-action.coffee +++ b/app/components/project/modals/edit-instance-action.coffee @@ -119,6 +119,7 @@ export default ModalBase.extend event_value: content event_timestamp: now new_note_event.save().then => + @get('model.events').pushObject new_note_event @set 'new_note_content', '' #@send 'close' start_inquiry: ->