Redesign 1 bcrypt #226

Merged
bones7242 merged 156 commits from redesign-1-bcrypt into master 2017-10-30 15:55:14 +01:00
3 changed files with 2 additions and 8 deletions
Showing only changes of commit 3e1427a314 - Show all commits

View file

@ -42,12 +42,9 @@ function publishNewChannel (event) {
}
})
.catch(error => {
if (error.name === 'ChannelNameError'){
if (error.name === 'ChannelNameError' || error.name === 'ChannelPasswordError'){
const channelNameErrorDisplayElement = document.getElementById('input-error-channel-name');
showError(channelNameErrorDisplayElement, error.message);
} else if (error.name === 'ChannelPasswordError'){
const passwordErrorDisplayElement = document.getElementById('input-error-channel-password');
showError(passwordErrorDisplayElement, error.message);
} else {
console.log('signup failure:', error);
}

View file

@ -177,7 +177,7 @@ function validateFilePublishSubmission(stagedFiles, claimName, channelName){
if (result) {
resolve();
} else {
reject(new NameError('that url ending is already taken'));
reject(new NameError('Sorry, that ending is already taken'));
}
})
.catch(error => {

View file

@ -17,9 +17,6 @@
<div class="column column--3 column--sml-10">
<label class="label" for="new-channel-password">Password:</label>
</div><div class="column column--6 column--sml-10">
<div class="info-message-placeholder">
<div id="input-error-channel-password" class="info-message info-message--failure"></div>
</div>
<div class="input-text--primary">
<input type="password" name="new-channel-password" id="new-channel-password" class="input-text" placeholder="" value="" >
</div>