mirror of
https://github.com/smogon/pokemon-showdown-client.git
synced 2026-03-21 17:50:29 -05:00
Teams: Redirect to homepage when deleting teams
Some checks are pending
Node.js CI / build (22.x) (push) Waiting to run
Some checks are pending
Node.js CI / build (22.x) (push) Waiting to run
This commit is contained in:
parent
3c5007fca0
commit
b9cb3f356a
|
|
@ -987,8 +987,8 @@ function toId() {
|
||||||
team.privacy = data.privacy;
|
team.privacy = data.privacy;
|
||||||
team.team = data.team;
|
team.team = data.team;
|
||||||
team.loaded = true;
|
team.loaded = true;
|
||||||
Storage.saveTeams();
|
|
||||||
callback(team);
|
callback(team);
|
||||||
|
Storage.saveTeams();
|
||||||
var entry = app.loadingTeamQueue.shift();
|
var entry = app.loadingTeamQueue.shift();
|
||||||
if (entry) {
|
if (entry) {
|
||||||
app.loadTeam(entry[0], entry[1]);
|
app.loadTeam(entry[0], entry[1]);
|
||||||
|
|
|
||||||
|
|
@ -424,7 +424,7 @@ export class TeamViewer extends preact.Component<PageProps> {
|
||||||
`Error while deleting team. Please try again later.`
|
`Error while deleting team. Please try again later.`
|
||||||
);
|
);
|
||||||
if (result.success) {
|
if (result.success) {
|
||||||
location.replace('');
|
location.replace('../');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user