[ 
https://issues.apache.org/jira/browse/NIFI-3016?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15675093#comment-15675093
 ] 

ASF GitHub Bot commented on NIFI-3016:
--------------------------------------

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.


> UI - Allow template overriding
> ------------------------------
>
>                 Key: NIFI-3016
>                 URL: https://issues.apache.org/jira/browse/NIFI-3016
>             Project: Apache NiFi
>          Issue Type: Improvement
>          Components: Core UI
>            Reporter: Pierre Villard
>            Assignee: Pierre Villard
>            Priority: Minor
>
> It would be useful that, when saving a template with a name of an already 
> existing template, the user is proposed the option to override the existing 
> one.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to