mirror of
https://github.com/rojo-rbx/rojo.git
synced 2026-10-21 20:21:38 +00:00
Add permission management listings
This commit is contained in:
parent
4275783ba4
commit
7c1afd5aa9
5 changed files with 256 additions and 0 deletions
|
|
@ -519,11 +519,26 @@ function App:render()
|
|||
}),
|
||||
|
||||
Permissions = createPageElement(AppStatus.Permissions, {
|
||||
headlessAPI = self.headlessAPI,
|
||||
|
||||
onBack = function()
|
||||
self:setState({
|
||||
appStatus = AppStatus.Settings,
|
||||
})
|
||||
end,
|
||||
|
||||
onEdit = function(source, meta, apiMap)
|
||||
local apiList = {}
|
||||
for api in apiMap do
|
||||
table.insert(apiList, api)
|
||||
end
|
||||
self:requestPermission(
|
||||
source,
|
||||
meta.Name .. if meta.Creator then " by " .. meta.Creator else "",
|
||||
apiList,
|
||||
apiMap
|
||||
)
|
||||
end,
|
||||
}),
|
||||
|
||||
Error = createPageElement(AppStatus.Error, {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue