Add text in the drive's share button for consistency

pull/1/head
yflory 6 years ago
parent 7a93927068
commit 38daf4676c

@ -1892,9 +1892,11 @@ define([
var createShareButton = function (id, $container) { var createShareButton = function (id, $container) {
var $shareBlock = $('<button>', { var $shareBlock = $('<button>', {
'class': 'fa fa-shhare-alt cp-toolbar-share-button', 'class': 'cp-toolbar-share-button',
title: Messages.shareButton title: Messages.shareButton
}); });
var $icon = $sharedIcon.clone().appendTo($shareBlock);
var $text = $('<span>').text(Messages.shareButton).appendTo($shareBlock);
var data = manager.getSharedFolderData(id); var data = manager.getSharedFolderData(id);
var parsed = Hash.parsePadUrl(data.href); var parsed = Hash.parsePadUrl(data.href);
if (!parsed || !parsed.hash) { return void console.error("Invalid href: "+data.href); } if (!parsed || !parsed.hash) { return void console.error("Invalid href: "+data.href); }

Loading…
Cancel
Save