mirror of
https://github.com/rojo-rbx/rojo.git
synced 2026-10-21 20:21:38 +00:00
Add permissions page
This commit is contained in:
parent
ebdffb0088
commit
4275783ba4
6 changed files with 173 additions and 15 deletions
|
|
@ -35,6 +35,7 @@ local StatusPages = require(script.StatusPages)
|
|||
local AppStatus = strict("AppStatus", {
|
||||
NotConnected = "NotConnected",
|
||||
Settings = "Settings",
|
||||
Permissions = "Permissions",
|
||||
Connecting = "Connecting",
|
||||
Connected = "Connected",
|
||||
Error = "Error",
|
||||
|
|
@ -509,6 +510,20 @@ function App:render()
|
|||
appStatus = AppStatus.NotConnected,
|
||||
})
|
||||
end,
|
||||
|
||||
onNavigatePermissions = function()
|
||||
self:setState({
|
||||
appStatus = AppStatus.Permissions,
|
||||
})
|
||||
end,
|
||||
}),
|
||||
|
||||
Permissions = createPageElement(AppStatus.Permissions, {
|
||||
onBack = function()
|
||||
self:setState({
|
||||
appStatus = AppStatus.Settings,
|
||||
})
|
||||
end,
|
||||
}),
|
||||
|
||||
Error = createPageElement(AppStatus.Error, {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue