X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/157497ea3a28fdbd4c1e6fa69d93f4dee5ae8c11..2873926cdbfc8012b276db11d24cea3ad6a4bdd4:/apps/workbench/app/models/virtual_machine.rb diff --git a/apps/workbench/app/models/virtual_machine.rb b/apps/workbench/app/models/virtual_machine.rb index 31ee9122f7..978964196d 100644 --- a/apps/workbench/app/models/virtual_machine.rb +++ b/apps/workbench/app/models/virtual_machine.rb @@ -4,10 +4,9 @@ class VirtualMachine < ArvadosBase current_user.andand.is_admin end def attributes_for_display - logger.debug super.append ['current_user_logins', @current_user_logins] super.append ['current_user_logins', @current_user_logins] end - def attribute_editable?(attr) + def attribute_editable? attr, *args attr != 'current_user_logins' and super end def self.attribute_info @@ -16,4 +15,7 @@ class VirtualMachine < ArvadosBase {current_user_logins: {column_heading: "logins", type: 'array'}}, super] end + def friendly_link_name + (hostname && !hostname.empty?) ? hostname : uuid + end end