on master help sign in
Don't let planets set spawn proxies
d442ef0Fang
src/bridge/views/Point/Actions.js+4−4
@@ -20,6 +20,9 @@ function Actions(props) {
20
20
21 const addr = need.address({ wallet });
21 const addr = need.address({ wallet });
22
22
23+ const planet = isPlanet(point);
24+ const star = isStar(point);
25+
23 const isOwner = pointDetails.matchWith({
26 const isOwner = pointDetails.matchWith({
24 Nothing: _ => false,
27 Nothing: _ => false,
25 Just: details => eqAddr(details.value.owner, addr),
28 Just: details => eqAddr(details.value.owner, addr),
@@ -29,7 +32,7 @@ function Actions(props) {
29 Just: details => details.value.active,
32 Just: details => details.value.active,
30 });
33 });
31 const isActiveOwner = isOwner && isActive;
34 const isActiveOwner = isOwner && isActive;
32− const canSetSpawnProxy = isActiveOwner;
35+ const canSetSpawnProxy = isActiveOwner && !planet;
33 const canSetManagementProxy = isActiveOwner;
36 const canSetManagementProxy = isActiveOwner;
34
37
35 const canManage =
38 const canManage =
@@ -58,9 +61,6 @@ function Actions(props) {
58 Just: count => count.value > 0,
61 Just: count => count.value > 0,
59 });
62 });
60
63
61− const planet = isPlanet(point);
62− const star = isStar(point);
63−
64 const canTransfer = pointDetails.matchWith({
64 const canTransfer = pointDetails.matchWith({
65 Nothing: () => false,
65 Nothing: () => false,
66 Just: deets =>
66 Just: deets =>