PLT-4317: Fix Desktop App platform in sessions list. (#5048)

Incidentally fixes displaying the Linux icon next to sessions on Linux
at the same time.
Этот коммит содержится в:
George Goldberg
2017-01-13 13:47:10 +00:00
коммит произвёл enahum
родитель 0196137dec
Коммит 6c814c72ec
3 изменённых файлов: 16 добавлений и 0 удалений

Просмотреть файл

@@ -134,6 +134,17 @@ export default class ActivityLogModal extends React.Component {
} else {
devicePicture = 'fa fa-linux';
}
} else if (currentSession.props.os.indexOf('Linux') !== -1) {
devicePicture = 'fa fa-linux';
}
if (currentSession.props.browser.indexOf('Desktop App') !== -1) {
devicePlatform = (
<FormattedMessage
id='activity_log_modal.desktop'
defaultMessage='Native Desktop App'
/>
);
}
let moreInfo;