check capabilities.account before showing upsell button
This commit is contained in:
parent
15704cb6dc
commit
163899467d
1 changed files with 16 additions and 15 deletions
|
@ -412,21 +412,22 @@ module.exports.uploading = function(state, emit) {
|
||||||
};
|
};
|
||||||
|
|
||||||
module.exports.empty = function(state, emit) {
|
module.exports.empty = function(state, emit) {
|
||||||
const upsell = state.user.loggedIn
|
const upsell =
|
||||||
? ''
|
state.user.loggedIn || !state.capabilities.account
|
||||||
: html`
|
? ''
|
||||||
<button
|
: html`
|
||||||
class="center font-medium text-sm text-blue-dark hover:text-blue-darker focus:text-blue-darker mt-4 mb-2"
|
<button
|
||||||
onclick="${event => {
|
class="center font-medium text-sm text-blue-dark hover:text-blue-darker focus:text-blue-darker mt-4 mb-2"
|
||||||
event.stopPropagation();
|
onclick="${event => {
|
||||||
emit('signup-cta', 'drop');
|
event.stopPropagation();
|
||||||
}}"
|
emit('signup-cta', 'drop');
|
||||||
>
|
}}"
|
||||||
${state.translate('signInSizeBump', {
|
>
|
||||||
size: bytes(state.LIMITS.MAX_FILE_SIZE)
|
${state.translate('signInSizeBump', {
|
||||||
})}
|
size: bytes(state.LIMITS.MAX_FILE_SIZE)
|
||||||
</button>
|
})}
|
||||||
`;
|
</button>
|
||||||
|
`;
|
||||||
return html`
|
return html`
|
||||||
<send-upload-area
|
<send-upload-area
|
||||||
class="flex flex-col items-center justify-center border-2 border-dashed border-grey rounded px-6 py-16 h-full w-full"
|
class="flex flex-col items-center justify-center border-2 border-dashed border-grey rounded px-6 py-16 h-full w-full"
|
||||||
|
|
Loading…
Reference in a new issue