mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-31 07:57:47 +01:00
Fixes the teleporter UI (#25620)
* iywbfwbanfw yeah * bam --------- Co-authored-by: Burzah <116982774+Burzah@users.noreply.github.com>
This commit is contained in:
@@ -93,7 +93,8 @@
|
||||
data["teleporterhub"] = null
|
||||
data["calibrated"] = null
|
||||
data["regime"] = regime
|
||||
data["target"] = (!target || !get_turf(target)) ? "None" : sanitize(get_area(target))
|
||||
var/area/target_area = get_area(target)
|
||||
data["target"] = target_area ? sanitize(target_area.name) : "None"
|
||||
data["calibrating"] = calibrating
|
||||
data["locked"] = locked ? TRUE : FALSE
|
||||
data["targetsTeleport"] = null
|
||||
|
||||
@@ -47,6 +47,7 @@ export const Teleporter = (props, context) => {
|
||||
<Dropdown
|
||||
width={18.2}
|
||||
selected={target}
|
||||
disabled={calibrating}
|
||||
options={Object.keys(targetsTeleport)}
|
||||
color={target !== 'None' ? 'default' : 'bad'}
|
||||
onSelected={(val) =>
|
||||
@@ -62,6 +63,7 @@ export const Teleporter = (props, context) => {
|
||||
<Dropdown
|
||||
width={18.2}
|
||||
selected={target}
|
||||
disabled={calibrating}
|
||||
options={Object.keys(targetsTeleport)}
|
||||
color={target !== 'None' ? 'default' : 'bad'}
|
||||
onSelected={(val) =>
|
||||
|
||||
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user