Github user pvillard31 commented on a diff in the pull request:

    https://github.com/apache/nifi/pull/1243#discussion_r88567738
  
    --- Diff: 
nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/js/nf/canvas/nf-actions.js
 ---
    @@ -1271,7 +1272,43 @@ nf.Actions = (function () {
                                     // clear the template dialog fields
                                     $('#new-template-name').val('');
                                     $('#new-template-description').val('');
    -                            }).fail(nf.Common.handleAjaxError);
    +                            }).fail(function () {
    --- End diff --
    
    Here, I'm saying that I should propose users to override an existing 
template in case of failure during the first `createTemplate` attempt. However 
the failure could be caused by something else than "template already exists". 
I'd like some "UI guru" advice regarding the best way to only catch the wanted 
error and to execute `nf.Common.handleAjaxError` otherwise.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

Reply via email to