Fix share and burn buttons in drive toolbar

pull/1/head
yflory 5 years ago
parent bc3d827ce0
commit 5441a499ba

@ -3556,9 +3556,13 @@ define([
if (!readOnlyFolder) { if (!readOnlyFolder) {
createNewButton(isInRoot, APP.toolbar.$bottomL); createNewButton(isInRoot, APP.toolbar.$bottomL);
} }
/*
// The share button is not displayed anymore in the toolbar: users can't know
// if they're going to share the current shared folder or the selected pad
if (sfId) { if (sfId) {
createShareButton(sfId, APP.toolbar.$bottomL); createShareButton(sfId, APP.toolbar.$bottomL);
} }
*/
if (APP.mobile()) { if (APP.mobile()) {
var $context = $('<button>', { var $context = $('<button>', {

@ -251,14 +251,18 @@ define([
// Add a "Burn this drive" button // Add a "Burn this drive" button
if (!APP.loggedIn && !APP.readOnly) { if (!APP.loggedIn && !APP.readOnly) {
APP.$burnThisDrive = common.createButton(null, true).click(function () { APP.$burnThisDrive = common.createButton(null, true, {
text: '',
name: 'burn-anon-drive',
icon: 'fa-ban',
title: Messages.fm_burnThisDriveButton,
drawer: false
}).click(function () {
UI.confirm(Messages.fm_burnThisDrive, function (yes) { UI.confirm(Messages.fm_burnThisDrive, function (yes) {
if (!yes) { return; } if (!yes) { return; }
common.getSframeChannel().event('EV_BURN_ANON_DRIVE'); common.getSframeChannel().event('EV_BURN_ANON_DRIVE');
}, null, true); }, null, true);
}).attr('title', Messages.fm_burnThisDriveButton) });
.removeClass('fa-question')
.addClass('fa-ban');
} }
$('body').css('display', ''); $('body').css('display', '');

Loading…
Cancel
Save