IF YOU WOULD LIKE TO GET AN ACCOUNT, please write an email to s dot adaszewski at gmail dot com. User accounts are meant only to report issues and/or generate pull requests. This is a purpose-specific Git hosting for ADARED projects. Thank you for your understanding!
Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.

arvados-object-name.js 393B

12345678910111213
  1. import arvadosTypeName from 'arvados-type-name';
  2. function arvadosObjectName(item) {
  3. let typeName = arvadosTypeName(item['uuid']);
  4. if (typeName === 'user')
  5. return (item.first_name + ' ' + item.last_name);
  6. else if (typeName === 'container')
  7. return ('Container running image ' + item.container_image);
  8. else
  9. return item.name;
  10. }
  11. export default arvadosObjectName;