Add icons in the share modal

pull/1/head
yflory 3 years ago
parent ff70abae11
commit e9de9bc9aa

@ -76,6 +76,7 @@ define([
var shareButton = {
className: 'primary cp-share-with-friends',
name: Messages.share_withFriends,
iconClass: '.fa.fa-shhare-alt',
onClick: function () {
var href;
nThen(function (waitFor) {
@ -425,7 +426,8 @@ define([
makeCancelButton(),
!opts.sharedFolder && {
className: 'secondary cp-nobar',
name: Messages.share_linkOpen, // XXX add fa-eye icon
name: Messages.share_linkOpen,
iconClass: '.fa.fa-eye',
onClick: function () {
opts.saveValue();
var v = opts.getLinkValue({
@ -441,7 +443,8 @@ define([
keys: [[13, 'ctrl']]
}, {
className: 'primary cp-nobar',
name: Messages.share_linkCopy, // XXX add fa-link icon
name: Messages.share_linkCopy,
iconClass: '.fa.fa-link',
onClick: function () {
opts.saveValue();
var v = opts.getLinkValue({
@ -496,6 +499,7 @@ define([
{
className: 'primary',
name: Messages.share_linkCopy,
iconClass: '.fa.fa-link',
onClick: function () {
Feedback.send('SHARE_EMBED');
var v = opts.getEmbedValue();
@ -870,6 +874,7 @@ define([
{
className: 'primary',
name: Messages.share_linkCopy,
iconClass: '.fa.fa-link',
onClick: function () {
var v = opts.getLinkValue();
var success = Clipboard.copy(v);
@ -915,6 +920,7 @@ define([
}, {
className: 'primary',
name: Messages.share_mediatagCopy,
iconClass: '.fa.fa-link',
onClick: function () {
var v = common.getMediatagFromHref(opts.fileData);
var success = Clipboard.copy(v);

@ -22,6 +22,8 @@
.usergrid_main();
.forms_main();
.fa-shhare-alt:before { content: "\f1e0"; }
#cp-filepicker-dialog {
display: none;
.cp-modal {

Loading…
Cancel
Save