mirror of
https://github.com/revoltchat/revite.git
synced 2024-11-25 00:20:57 -05:00
fix: Add ability to leave server through server info screen
This commit is contained in:
parent
00e6ead9bd
commit
5e66bc8dc4
1 changed files with 11 additions and 0 deletions
|
@ -38,6 +38,17 @@ export default function ServerInfo({
|
||||||
children: "Edit Identity",
|
children: "Edit Identity",
|
||||||
palette: "primary",
|
palette: "primary",
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
onClick: () => {
|
||||||
|
modalController.push({
|
||||||
|
type: "leave_server",
|
||||||
|
target: server,
|
||||||
|
});
|
||||||
|
return true;
|
||||||
|
},
|
||||||
|
children: "Leave Server",
|
||||||
|
palette: "error",
|
||||||
|
},
|
||||||
{
|
{
|
||||||
onClick: () => {
|
onClick: () => {
|
||||||
modalController.push({
|
modalController.push({
|
||||||
|
|
Loading…
Reference in a new issue