From e9de9bc9aa95776eedf2e7a5f4d809d2d7f5a1e3 Mon Sep 17 00:00:00 2001 From: yflory Date: Tue, 7 Sep 2021 12:13:38 +0200 Subject: [PATCH] Add icons in the share modal --- www/common/inner/share.js | 10 ++++++++-- www/secureiframe/app-secure.less | 2 ++ 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/www/common/inner/share.js b/www/common/inner/share.js index f76c15e28..fce74fdda 100644 --- a/www/common/inner/share.js +++ b/www/common/inner/share.js @@ -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); diff --git a/www/secureiframe/app-secure.less b/www/secureiframe/app-secure.less index e1b9a1a16..76956019b 100644 --- a/www/secureiframe/app-secure.less +++ b/www/secureiframe/app-secure.less @@ -22,6 +22,8 @@ .usergrid_main(); .forms_main(); + .fa-shhare-alt:before { content: "\f1e0"; } + #cp-filepicker-dialog { display: none; .cp-modal {