mirror of
https://github.com/EDCD/coriolis.git
synced 2025-12-10 15:15:34 +00:00
add link to orbis data
This commit is contained in:
@@ -510,14 +510,15 @@ export default class OutfittingPage extends Page {
|
|||||||
*/
|
*/
|
||||||
_genOrbis() {
|
_genOrbis() {
|
||||||
const data = {};
|
const data = {};
|
||||||
const ship = _.cloneDeep(this.state.ship);
|
const ship = this.state.ship;
|
||||||
console.log(this.state);
|
|
||||||
ship.coriolisId = ship.id;
|
ship.coriolisId = ship.id;
|
||||||
data.coriolisShip = ship;
|
data.coriolisShip = ship;
|
||||||
|
data.coriolisShip.url = window.location.href;
|
||||||
data.title = this.state.buildName || ship.id;
|
data.title = this.state.buildName || ship.id;
|
||||||
data.description = this.state.buildName || ship.id;
|
data.description = this.state.buildName || ship.id;
|
||||||
data.ShipName = ship.id;
|
data.ShipName = ship.id;
|
||||||
data.Ship = ship.id;
|
data.Ship = ship.id;
|
||||||
|
console.log(data);
|
||||||
this.context.showModal(<ModalOrbis ship={data}/>);
|
this.context.showModal(<ModalOrbis ship={data}/>);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user