Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use a context sensitive route for the popped out terminal.html #2882

Merged
merged 1 commit into from
Oct 12, 2017

Conversation

foot
Copy link
Contributor

@foot foot commented Oct 9, 2017

  • Service-ui has learned a new route which corresponds to the existing
    scope terminal.html route. Both standalone and service-ui scope can now
    respond to terminal.html:
    • If using standalone scope path/to/scope/ -> path/to/scope/terminal.html will be used.
    • If using service-ui app/instanceid -> app/instanceId/terminal.html

- Service-ui has learned a new route which corresponds to the existing
  scope terminal.html route. Both standalone and service-ui scope can now
  respond to terminal.html:
  - If using standalone scope path/to/scope/ -> path/to/scope/terminal.html will be used.
  - If using service-ui app/instanceid -> app/instanceId/terminal.html
@foot foot requested a review from jpellizzari October 9, 2017 10:24
@@ -243,7 +243,7 @@ class Terminal extends React.Component {

const bcr = this.node.getBoundingClientRect();
const minWidth = (this.state.characterWidth * 80) + (8 * 2);
openNewWindow(`${getApiPath()}/terminal.html#!/state/${paramString}`, bcr, minWidth);
openNewWindow(`${basePath(window.location.pathname)}/terminal.html#!/state/${paramString}`, bcr, minWidth);

This comment was marked as abuse.

This comment was marked as abuse.

@jpellizzari
Copy link
Contributor

@foot What is the context for this? I am confused as to what this is fixing.

Copy link
Contributor

@jpellizzari jpellizzari left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@foot foot merged commit 71a18fe into master Oct 12, 2017
@foot foot deleted the use-service-ui-terminal-route branch October 12, 2017 09:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants