remove signup-cta and tweak console log wording to remove anon user references

This commit is contained in:
Nick Sweeting 2021-05-19 05:13:47 -04:00 committed by GitHub
parent 0ffc960523
commit d6ac469e1a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 4 deletions

View File

@ -35,8 +35,7 @@ module.exports = function(state, emit) {
state.archive.dlimit = selected; state.archive.dlimit = selected;
emit('render'); emit('render');
if (selected > parseInt(state.user.maxDownloads || '0')) { if (selected > parseInt(state.user.maxDownloads || '0')) {
console.log('Chosen max download count is larger than the allowed limit for anonymous users', selected) console.log('Chosen max download count is larger than the allowed limit', selected)
emit('signup-cta', 'count');
} }
}, },
'expire-after-dl-count-select' 'expire-after-dl-count-select'
@ -62,8 +61,7 @@ module.exports = function(state, emit) {
state.archive.timeLimit = selected; state.archive.timeLimit = selected;
emit('render'); emit('render');
if (selected > parseInt(state.user.maxExpireSeconds || '0')) { if (selected > parseInt(state.user.maxExpireSeconds || '0')) {
console.log('Chosen download expiration is larger than the allowed limit for anonymous users', selected) console.log('Chosen download expiration is larger than the allowed limit', selected)
emit('signup-cta', 'time');
} }
}, },
'expire-after-time-select' 'expire-after-time-select'