Redirect added after channel creation.
This commit is contained in:
parent
17e736ab1a
commit
567eb5b574
6 changed files with 16 additions and 20 deletions
|
|
@ -57,18 +57,4 @@ class registerPrompt{
|
|||
}
|
||||
}
|
||||
|
||||
const registerForm = new registerPrompt();
|
||||
|
||||
|
||||
|
||||
/*async function registerPrompt(event){
|
||||
if(!event || event.key == "Enter"){
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
//assign events
|
||||
document.querySelector("#register-channel-name").addEventListener("keydown", registerPrompt)
|
||||
document.querySelector("#register-description").addEventListener("keydown", registerPrompt)
|
||||
document.querySelector("#register-thumbnail").addEventListener("keydown", registerPrompt)*/
|
||||
const registerForm = new registerPrompt();
|
||||
|
|
@ -789,7 +789,7 @@ class canopyAjaxUtils{
|
|||
});
|
||||
|
||||
if(response.ok){
|
||||
location = "/";
|
||||
location = `/c/${name}/settings`;
|
||||
}else{
|
||||
utils.ux.displayResponseError(await response.json());
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue