From 371168a6134468e57c62cd80c92058451548233c Mon Sep 17 00:00:00 2001 From: szaimen Date: Sat, 17 Jul 2021 00:56:03 +0200 Subject: [PATCH] Filepicker - hide empty create action box if creation is not allowed Signed-off-by: szaimen Signed-off-by: npmbuildbot-nextcloud[bot] --- core/js/dist/login.js | 2 +- core/js/dist/login.js.map | 2 +- core/js/dist/main.js | 2 +- core/js/dist/main.js.map | 2 +- core/src/OC/dialogs.js | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/core/js/dist/login.js b/core/js/dist/login.js index 928d6206e837a..bddda28184a5b 100644 --- a/core/js/dist/login.js +++ b/core/js/dist/login.js @@ -232,7 +232,7 @@ const b={create:"POST",update:"PROPPATCH",patch:"PROPPATCH",delete:"DELETE",read * You should have received a copy of the GNU Affero General Public License * along with this program. If not, see . * - */const N={YES_NO_BUTTONS:70,OK_BUTTONS:71,FILEPICKER_TYPE_CHOOSE:1,FILEPICKER_TYPE_MOVE:2,FILEPICKER_TYPE_COPY:3,FILEPICKER_TYPE_COPY_MOVE:4,FILEPICKER_TYPE_CUSTOM:5,dialogsCounter:0,alert:function(e,t,n,r){this.message(e,t,"alert",N.OK_BUTTON,n,r)},info:function(e,t,n,r){this.message(e,t,"info",N.OK_BUTTON,n,r)},confirm:function(e,t,n,r){return this.message(e,t,"notice",N.YES_NO_BUTTONS,n,r)},confirmDestructive:function(e,t,n,r,a){return this.message(e,t,"none",n,r,void 0===a||a)},confirmHtml:function(e,t,n,r){return this.message(e,t,"notice",N.YES_NO_BUTTONS,n,r,!0)},prompt:function(e,n,r,a,i,o){return s.a.when(this._getMessageTemplate()).then((function(u){var l="oc-dialog-"+N.dialogsCounter+"-content",c="#"+l,f=u.octemplate({dialog_name:l,title:n,message:e,type:"notice"}),p=s()("");p.attr("type",o?"password":"text").attr("id",l+"-input").attr("placeholder",i);var m=s()("