Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bsTNa-000392-KI for pgadmin-hackers@arkaria.postgresql.org; Fri, 07 Oct 2016 11:31:54 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1bsTNa-00067C-72 for pgadmin-hackers@arkaria.postgresql.org; Fri, 07 Oct 2016 11:31:54 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1bsTNZ-000654-Co for pgadmin-hackers@postgresql.org; Fri, 07 Oct 2016 11:31:53 +0000 Received: from mail-it0-x22a.google.com ([2607:f8b0:4001:c0b::22a]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1bsTNW-0004m9-5A for pgadmin-hackers@postgresql.org; Fri, 07 Oct 2016 11:31:52 +0000 Received: by mail-it0-x22a.google.com with SMTP id k64so2360508itb.0 for ; Fri, 07 Oct 2016 04:31:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pgadmin-org.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=eg7VQ7EqtGy/rVaxBgEWrHvEV3FXp9Y9khaEvcD6+BA=; b=IAqja4j1cmkKNeDyNmIRtKfo/t6kYlm1uBEkkTjZt5b1U+bRZMQl6DF5oiOPJHHG// StiOaodu1hU+H8U7Pvx3PZygbYRMhYURBUZrrDXN/TdBxw503WO0Kznjw+/mVtVWdTjZ LpDGoSghrAHNZOMrvEvI3dtHsy0g8gKpdMvkvFn+SE83v0MDkgkyVEZELB7b1T8myqmD 3kf06PULPRWHTothO7ThXkaXIlwaJWl9Q/JSjGL7NS5Nrkp3ZWH0YjT1GcaJGVAnTzMm GmkjEW86nFni7FFKjCcTSWwUYfDxXvfqx5fEBRHiVZQzqOb0RQnqAUIbh9qYH/K+Nras P+jQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=eg7VQ7EqtGy/rVaxBgEWrHvEV3FXp9Y9khaEvcD6+BA=; b=hH2ZUrkuEahHTfqYKHAEtb+6jhyxqsaS0GilQQGU3c/9sHkAMjI0bZPr/bEBDOATr3 nwRZcI+dwA0GtWwHGmUBF5YGnlfo2OFJaaolCeDp184xcDdnGzRRKn/jUgraLH73FPI2 XYOAMy2m8RQmlNKP2KBp4e/RolvcCNWROb7DBzFcC0IgK8I8F0ldKzwMCHjGYD86kLU8 aYub+LtBxIqpIvStoww8LfjKtueWXmspCa0rceT42jgzMUo1N2X1Ht9D7Q6i7Rz+tDlb 1doqLZqlxRKzp/W1MEbBYiXvyCG2E2ilY4LAFnlF7MPZWBYctQX8seXAPWaILAaf/B+N 5utg== X-Gm-Message-State: AA6/9RlI5olp6sEMnKqNMDRBCao0bxsPco5Y/LawQDl+Tlic/uwr9M5P2vb20R+u/3cbvA8aCGhyEtz8mHMJ7A== X-Received: by 10.36.202.131 with SMTP id k125mr20707999itg.100.1475839909216; Fri, 07 Oct 2016 04:31:49 -0700 (PDT) MIME-Version: 1.0 Received: by 10.64.1.203 with HTTP; Fri, 7 Oct 2016 04:31:48 -0700 (PDT) In-Reply-To: References: From: Dave Page Date: Fri, 7 Oct 2016 12:31:48 +0100 Message-ID: Subject: Re: [pgAdmin4][Patch]: RM1739 - Don't show Upload File icon unless it is not in capabilities [Storage Manager] To: Surinder Kumar Cc: pgadmin-hackers Content-Type: text/plain; charset=UTF-8 X-Pg-Spam-Score: -2.6 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgadmin-hackers Precedence: bulk Sender: pgadmin-hackers-owner@postgresql.org Thanks, patch applied. On Fri, Oct 7, 2016 at 7:03 AM, Surinder Kumar wrote: > Hi, > > Issue: > When clicked on upload icon while saving a file prompt user to leave page. > It is because the icon is a button and its type is set to submit which makes > it to prompt, instead it should be 'button' > > Storage Manager's menu items depends on capabilities list set by the module > using it. If capabilities doesn't have 'upload' in it, It won't work. Upload > button is bound to click event only when it is in capabilities. > > Solution: > As upload button is being added only when it is in capabilities, so upload > button html is removed from html file. It will not shown on UI untill it is > in capabilities list. > > Please find attached patch and review. > > > Thanks, > Surinder Kumar > > > > -- > Sent via pgadmin-hackers mailing list (pgadmin-hackers@postgresql.org) > To make changes to your subscription: > http://www.postgresql.org/mailpref/pgadmin-hackers > -- Dave Page Blog: http://pgsnake.blogspot.com Twitter: @pgsnake EnterpriseDB UK: http://www.enterprisedb.com The Enterprise PostgreSQL Company -- Sent via pgadmin-hackers mailing list (pgadmin-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgadmin-hackers