[ARVADOS] created: 1.1.3-61-g9333d60

Git user git at public.curoverse.com
Thu Feb 15 09:58:21 EST 2018


        at  9333d60538c8dcd9312e7b2dddb56dcf25e52d91 (commit)


commit 9333d60538c8dcd9312e7b2dddb56dcf25e52d91
Author: Lucas Di Pentima <ldipentima at veritasgenetics.com>
Date:   Thu Feb 15 11:57:31 2018 -0300

    11454: Don't show 'Remove' session button when listed on remoteHosts.
    
    Arvados-DCO-1.1-Signed-off-by: Lucas Di Pentima <ldipentima at veritasgenetics.com>

diff --git a/apps/workbench/app/assets/javascripts/components/sessions.js b/apps/workbench/app/assets/javascripts/components/sessions.js
index e172d3a..0c2b7c9 100644
--- a/apps/workbench/app/assets/javascripts/components/sessions.js
+++ b/apps/workbench/app/assets/javascripts/components/sessions.js
@@ -61,10 +61,13 @@ window.SessionsTable = {
                                     onclick: db.login.bind(db, session.baseURL),
                                 }, session.listedHost ? 'Enable ':'Log in ', m('span.glyphicon.glyphicon-log-in')))
                             ],
-                            m('td', session.isFromRails ? null : m('button.btn.btn-xs.btn-default', {
-                                uuidPrefix: uuidPrefix,
-                                onclick: m.withAttr('uuidPrefix', db.trash),
-                            }, 'Remove ', m('span.glyphicon.glyphicon-trash'))),
+                            m('td', session.isFromRails ? null :
+                                session.listedHost ? null :
+                                m('button.btn.btn-xs.btn-default', {
+                                    uuidPrefix: uuidPrefix,
+                                    onclick: m.withAttr('uuidPrefix', db.trash),
+                                }, 'Remove ', m('span.glyphicon.glyphicon-trash'))
+                            ),
                         ])
                     }),
                 ]),

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


hooks/post-receive
-- 




More information about the arvados-commits mailing list