Browse Source

WebClient shares: improve feedback after link copy

Signed-off-by: Nicola Murino <[email protected]>
Nicola Murino 1 year ago
parent
commit
a65e7782de
1 changed files with 4 additions and 0 deletions
  1. 4 0
      templates/webclient/shares.html

+ 4 - 0
templates/webclient/shares.html

@@ -462,8 +462,12 @@ explicit grant from the SFTPGo Team ([email protected]).
         clipboard.on('success', function (e) {
             e.trigger.querySelectorAll('span').forEach(spanEl => {
                 if (spanEl.getAttribute('data-i18n')){
+                    e.trigger.classList.remove("btn-light-primary");
+                    e.trigger.classList.add("btn-success");
                     setI18NData($(spanEl),"general.copied");
                     setTimeout(function(){
+                        e.trigger.classList.remove("btn-success");
+                        e.trigger.classList.add("btn-light-primary");
                         setI18NData($(spanEl),"general.copy_link");
                     }, 3000)
                 }