mirror of
https://github.com/ragestudio/comty.git
synced 2025-06-10 19:14:16 +00:00
use SidedrawerController
This commit is contained in:
parent
7dbeeba2a7
commit
f0de3fa1cf
@ -116,10 +116,10 @@ class App extends React.Component {
|
|||||||
if (!this.state.session && !token) {
|
if (!this.state.session && !token) {
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
|
||||||
await this.sessionController.forgetLocalSession()
|
await this.sessionController.forgetLocalSession()
|
||||||
await this.flushState()
|
await this.flushState()
|
||||||
|
|
||||||
app.eventBus.emit("forceToLogin")
|
app.eventBus.emit("forceToLogin")
|
||||||
|
|
||||||
antd.notification.open({
|
antd.notification.open({
|
||||||
@ -214,13 +214,13 @@ class App extends React.Component {
|
|||||||
|
|
||||||
static publicMethods = {
|
static publicMethods = {
|
||||||
openSettings: (goTo) => {
|
openSettings: (goTo) => {
|
||||||
window.app.DrawerController.open("settings", Settings, {
|
window.app.SidedrawerController.open("Settings", Settings, {
|
||||||
props: {
|
props: {
|
||||||
width: "fit-content",
|
width: "fit-content",
|
||||||
},
|
|
||||||
componentProps: {
|
|
||||||
goTo,
|
goTo,
|
||||||
}
|
},
|
||||||
|
allowMultiples: false,
|
||||||
|
escClosable: true,
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
openNavigationMenu: () => window.app.DrawerController.open("navigation", Navigation),
|
openNavigationMenu: () => window.app.DrawerController.open("navigation", Navigation),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user