[ARVADOS] updated: 1.1.1-156-g11f2d97

Git user git at public.curoverse.com
Wed Dec 20 11:13:41 EST 2017


Summary of changes:
 .../app/assets/javascripts/components/edit_tags.js         | 14 +++++---------
 1 file changed, 5 insertions(+), 9 deletions(-)

       via  11f2d977836ec3737b23abb1d716cef58b1314f2 (commit)
      from  01cea11ce0cb0e8df2907e66c71540658ed02d45 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.


commit 11f2d977836ec3737b23abb1d716cef58b1314f2
Author: Lucas Di Pentima <ldipentima at veritasgenetics.com>
Date:   Wed Dec 20 13:13:14 2017 -0300

    12479: Replacing isDirty flag with dirty stream
    
    Arvados-DCO-1.1-Signed-off-by: Lucas Di Pentima <ldipentima at veritasgenetics.com>

diff --git a/apps/workbench/app/assets/javascripts/components/edit_tags.js b/apps/workbench/app/assets/javascripts/components/edit_tags.js
index 0ed4b3f..b6a65a5 100644
--- a/apps/workbench/app/assets/javascripts/components/edit_tags.js
+++ b/apps/workbench/app/assets/javascripts/components/edit_tags.js
@@ -126,7 +126,7 @@ window.TagEditorApp = {
         vnode.state.editMode = vnode.attrs.targetEditable
         // Get tags
         vnode.state.tags = []
-        vnode.state.isDirty = false
+        vnode.state.dirty = m.stream(false)
         vnode.state.objPath = '/arvados/v1/'+vnode.attrs.targetController+'/'+vnode.attrs.targetUuid
         vnode.state.sessionDB.request(
             vnode.state.sessionDB.loadLocal(), vnode.state.objPath, {
@@ -148,12 +148,8 @@ window.TagEditorApp = {
                     tag.name.map(vnode.state.dirty)
                     tag.value.map(vnode.state.dirty)
                 })
-                vnode.state.dirty.map(function() {
-                    vnode.state.isDirty = true
-                    console.log('dirty!')
-                })
-                console.log('Setting up isDirty to false')
-                vnode.state.isDirty = false
+                console.log('Setting up dirty to false')
+                vnode.state.dirty(false)
             }
         )
     },
@@ -196,10 +192,10 @@ window.TagEditorApp = {
                                 }
                             ).then(function(v) {
                                 console.log('ok!')
-                                vnode.state.isDirty = false
+                                vnode.state.dirty(false)
                             })
                         }
-                    }, vnode.state.isDirty ? ' Save changes ' : ' Saved ')
+                    }, vnode.state.dirty() ? ' Save changes ' : ' Saved ')
                 ])
             ])
         ]

-----------------------------------------------------------------------


hooks/post-receive
-- 




More information about the arvados-commits mailing list