mirror of
https://github.com/rojo-rbx/rojo.git
synced 2026-10-22 13:21:38 +00:00
Generic popup titles
This commit is contained in:
parent
d158ccb2eb
commit
6fddcc5ceb
1 changed files with 3 additions and 4 deletions
|
|
@ -212,7 +212,7 @@ function App:requestPermission(source: string, name: string, apis: {string}, ini
|
||||||
local responseEvent = Instance.new("BindableEvent")
|
local responseEvent = Instance.new("BindableEvent")
|
||||||
|
|
||||||
self:setState(function(state)
|
self:setState(function(state)
|
||||||
state.popups[source] = {
|
state.popups[source .. " Permissions"] = {
|
||||||
name = name,
|
name = name,
|
||||||
content = e(PermissionPopup, {
|
content = e(PermissionPopup, {
|
||||||
responseEvent = responseEvent,
|
responseEvent = responseEvent,
|
||||||
|
|
@ -225,7 +225,6 @@ function App:requestPermission(source: string, name: string, apis: {string}, ini
|
||||||
}),
|
}),
|
||||||
onClose = function()
|
onClose = function()
|
||||||
responseEvent:Fire(initialState)
|
responseEvent:Fire(initialState)
|
||||||
responseEvent:Destroy()
|
|
||||||
end,
|
end,
|
||||||
}
|
}
|
||||||
return state
|
return state
|
||||||
|
|
@ -235,7 +234,7 @@ function App:requestPermission(source: string, name: string, apis: {string}, ini
|
||||||
responseEvent:Destroy()
|
responseEvent:Destroy()
|
||||||
|
|
||||||
self:setState(function(state)
|
self:setState(function(state)
|
||||||
state.popups[source] = nil
|
state.popups[source .. " Permissions"] = nil
|
||||||
return state
|
return state
|
||||||
end)
|
end)
|
||||||
|
|
||||||
|
|
@ -408,7 +407,7 @@ function App:render()
|
||||||
for id, popup in self.state.popups do
|
for id, popup in self.state.popups do
|
||||||
popups["Rojo_"..id] = e(StudioPluginGui, {
|
popups["Rojo_"..id] = e(StudioPluginGui, {
|
||||||
id = id,
|
id = id,
|
||||||
title = popup.name .. " Permissions",
|
title = popup.name,
|
||||||
active = true,
|
active = true,
|
||||||
|
|
||||||
initDockState = Enum.InitialDockState.Top,
|
initDockState = Enum.InitialDockState.Top,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue