aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/+my-account/my-account-video-channels/my-account-video-channel-create.component.ts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2018-10-01 15:18:07 +0200
committerChocobozzz <me@florianbigard.com>2018-10-01 15:20:14 +0200
commit601527d7953a83d6ad08dbb2ed8ac02851beaf1e (patch)
tree8c2c83b526a6f137043ef3c7c06cb13e03b94438 /client/src/app/+my-account/my-account-video-channels/my-account-video-channel-create.component.ts
parent7361c401b17415931f25f3a2137ba22a06a6a4ed (diff)
downloadPeerTube-601527d7953a83d6ad08dbb2ed8ac02851beaf1e.tar.gz
PeerTube-601527d7953a83d6ad08dbb2ed8ac02851beaf1e.tar.zst
PeerTube-601527d7953a83d6ad08dbb2ed8ac02851beaf1e.zip
Check video channel name is unique on our instance
Diffstat (limited to 'client/src/app/+my-account/my-account-video-channels/my-account-video-channel-create.component.ts')
-rw-r--r--client/src/app/+my-account/my-account-video-channels/my-account-video-channel-create.component.ts9
1 files changed, 8 insertions, 1 deletions
diff --git a/client/src/app/+my-account/my-account-video-channels/my-account-video-channel-create.component.ts b/client/src/app/+my-account/my-account-video-channels/my-account-video-channel-create.component.ts
index 79ac07c93..81608d837 100644
--- a/client/src/app/+my-account/my-account-video-channels/my-account-video-channel-create.component.ts
+++ b/client/src/app/+my-account/my-account-video-channels/my-account-video-channel-create.component.ts
@@ -63,7 +63,14 @@ export class MyAccountVideoChannelCreateComponent extends MyAccountVideoChannelE
63 this.router.navigate([ '/my-account', 'video-channels' ]) 63 this.router.navigate([ '/my-account', 'video-channels' ])
64 }, 64 },
65 65
66 err => this.error = err.message 66 err => {
67 if (err.status === 409) {
68 this.error = this.i18n('This name already exists on this instance.')
69 return
70 }
71
72 this.error = err.message
73 }
67 ) 74 )
68 } 75 }
69 76