[MIRROR] Vending machines now use their name as a title for their UI [MDB IGNORE] (#8514)

* tgui: Vending machine titles (#61780)

* Vending machines now use their name as a title for their UI

Co-authored-by: Arkatos1 <43862960+Arkatos1@users.noreply.github.com>
This commit is contained in:
SkyratBot
2021-10-01 03:03:34 +01:00
committed by GitHub
co-authored by Arkatos1
parent 71162dda6e
commit dc57d5edd9
2 changed files with 1 additions and 2 deletions
+1 -1
View File
@@ -735,7 +735,7 @@ GLOBAL_LIST_EMPTY(vending_products)
/obj/machinery/vending/ui_interact(mob/user, datum/tgui/ui)
ui = SStgui.try_update_ui(user, src, ui)
if(!ui)
ui = new(user, src, "Vending")
ui = new(user, src, "Vending", name)
ui.open()
/obj/machinery/vending/ui_static_data(mob/user)
@@ -200,7 +200,6 @@ export const Vending = (props, context) => {
inventory = inventory.filter(item => !!item);
return (
<Window
title="Vending Machine"
width={450}
height={600}>
<Window.Content scrollable>