orbis fixes

This commit is contained in:
willyb321
2019-10-13 07:16:19 +11:00
parent 67409a613b
commit 1b8c460876
4 changed files with 12 additions and 10 deletions

View File

@@ -686,13 +686,12 @@ export default class OutfittingPage extends Page {
_genOrbis() {
const data = {};
const ship = this.state.ship;
ship.coriolisId = ship.id;
data.coriolisShip = ship;
data.url = window.location.href;
data.title = this.state.buildName || ship.id;
data.description = this.state.buildName || ship.id;
data.ShipName = ship.id;
data.Ship = ship.id;
data.body = ship;
data.url = `https://coriolis.io${outfitURL(ship.id, ship.toString(), data.title)}`;
ship.type = ship.id;
console.log(data);
this.context.showModal(<ModalOrbis ship={data} />);
}