Skip to content
This repository has been archived by the owner on Dec 15, 2022. It is now read-only.

Commit

Permalink
Merge 7df1b2f into 1e19579
Browse files Browse the repository at this point in the history
  • Loading branch information
smashwilson committed Jun 22, 2018
2 parents 1e19579 + 7df1b2f commit f3d0dc2
Show file tree
Hide file tree
Showing 13 changed files with 212 additions and 297 deletions.
139 changes: 0 additions & 139 deletions lib/atom/dock-item.js

This file was deleted.

11 changes: 11 additions & 0 deletions lib/atom/pane-item.js
Expand Up @@ -34,6 +34,7 @@ export default class PaneItem extends React.Component {
workspace: PropTypes.object.isRequired,
children: PropTypes.func.isRequired,
uriPattern: PropTypes.string.isRequired,
className: PropTypes.string,
}

constructor(props) {
Expand Down Expand Up @@ -76,6 +77,9 @@ export default class PaneItem extends React.Component {
openItem.hydrateStub({
copy: () => this.copyOpenItem(openItem),
});
if (this.props.className) {
openItem.addClassName(this.props.className);
}
}

this.subs.add(this.props.workspace.addOpener(this.opener));
Expand All @@ -102,6 +106,9 @@ export default class PaneItem extends React.Component {
}

const openItem = new OpenItem(m);
if (this.props.className) {
openItem.addClassName(this.props.className);
}

return new Promise(resolve => {
this.setState(prevState => ({
Expand Down Expand Up @@ -184,6 +191,10 @@ class OpenItem {
}
}

addClassName(className) {
this.domNode.classList.add(className);
}

getKey() {
return this.id;
}
Expand Down
8 changes: 7 additions & 1 deletion lib/controllers/github-tab-controller.js
Expand Up @@ -16,6 +16,12 @@ export default class GithubTabController extends React.Component {
loginModel: PropTypes.instanceOf(GithubLoginModel),
}

static uriPattern = 'atom-github://dock-item/github';

static buildURI() {
return this.uriPattern;
}

constructor(props) {
super(props);
autobind(this, 'handleRemoteSelect');
Expand Down Expand Up @@ -155,7 +161,7 @@ export default class GithubTabController extends React.Component {
}

getURI() {
return 'atom-github://dock-item/github';
return this.constructor.uriPattern;
}

getWorkingDirectory() {
Expand Down

0 comments on commit f3d0dc2

Please sign in to comment.