🐜 Do not display download and delete links after when being invited
This commit is contained in:
parent
cf094d4f34
commit
0b34761a3c
|
@ -433,7 +433,6 @@ function updateProgressBar(data) {
|
|||
if ($('#zip-files').is(':checked')) {
|
||||
$('label[for="zip-files"]').click();
|
||||
}
|
||||
|
||||
}
|
||||
} else {
|
||||
var i = data.i;
|
||||
|
@ -469,6 +468,7 @@ function updateProgressBar(data) {
|
|||
var links = encodeURIComponent('["'+short+'"]');
|
||||
var limit = (delay === 0) ? i18n.noLimit : i18n.expiration+' '+moment.unix(delay * 86400 + created_at).locale(window.navigator.language).format('LLLL');
|
||||
n.html(n.html()+' '+s.html()+' <a href="'+actionURL+'m?links='+links+'"><i class="mdi-communication-email"></i></a><br>'+limit);
|
||||
if (!isGuest) {
|
||||
d.html(['<div class="card-action">',
|
||||
'<div class="input-field">',
|
||||
'<span class="prefix big-prefix">',
|
||||
|
@ -490,6 +490,9 @@ function updateProgressBar(data) {
|
|||
'<label class="active" for="delete-', short, '">', i18n.delText, '</label>',
|
||||
'</div>',
|
||||
'</div>'].join(''));
|
||||
} else {
|
||||
n.html(n.html()+' '+s.html());
|
||||
}
|
||||
s.remove();
|
||||
|
||||
var p2 = dp.parent();
|
||||
|
@ -515,7 +518,9 @@ function updateProgressBar(data) {
|
|||
}
|
||||
|
||||
// Add the file to localStorage
|
||||
if (!isGuest) {
|
||||
addItem(data.name, url, data.size, del_at_first_view, created_at, delay, data.short, data.token);
|
||||
}
|
||||
|
||||
if (isGuest && short !== null) {
|
||||
window.filesURLs.push(JSON.stringify({ name: data.name, short: data.short, url: url, size: data.size, created_at: created_at, delay: delay, token: data.token }));
|
||||
|
|
Loading…
Reference in New Issue