Skip to content
This repository has been archived by the owner on Apr 25, 2023. It is now read-only.

Commit

Permalink
Link to desired capabilities documentation (#188)
Browse files Browse the repository at this point in the history
  • Loading branch information
dpgraham authored May 15, 2017
1 parent bba0c3c commit 6e6b3fd
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion app/renderer/components/Session/Session.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
import { shell } from 'electron';
import React, { Component } from 'react';
import NewSessionForm from './NewSessionForm';
import SavedSessions from './SavedSessions';
import AttachToSession from './AttachToSession';
import { Tabs, Form, Input, Button, Spin, Card } from 'antd';
import { Tabs, Form, Input, Button, Spin, Card, Icon } from 'antd';
import { ServerTypes } from '../../actions/Session';
import SessionStyles from './Session.css';

Expand Down Expand Up @@ -91,6 +92,12 @@ export default class Session extends Component {
</TabPane>
</Tabs>}
<div className={SessionStyles.sessionFooter}>
<div style={{float: 'left'}}>
<a href="#" onClick={(e) => e.preventDefault() || shell.openExternal("https://github.com/appium/appium/blob/master/docs/en/writing-running-appium/caps.md")}>
<Icon type='link' />&nbsp;
Desired Capabilities Documentation
</a>
</div>
{ (!isAttaching && capsUUID) && <Button onClick={() => saveSession(caps, {uuid: capsUUID})} disabled={!isCapsDirty}>Save</Button> }
{!isAttaching && <Button onClick={requestSaveAsModal}>Save As...</Button>}
{!isAttaching && <Button type="primary" onClick={() => newSession(caps)} className={SessionStyles['start-session-button']}>Start Session</Button>}
Expand Down

0 comments on commit 6e6b3fd

Please sign in to comment.