Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Johannes Lantz 30 posts 194 karma points
    Apr 17, 2019 @ 06:46
    Johannes Lantz
    0

    Hi there,

    I am just playing around in the project just for fun and found this

       <div ng-if="allowDelete">
            <umb-confirm on-confirm="performDelete" on-cancel="cancel">
            </umb-confirm>
        </div>
    
            <div class="umb-pane btn-toolbar umb-btn-toolbar">
                <div class="control-group umb-control-group">   
                    <a href class="btn btn-link" ng-click="cancel()"><localize key="general_cancel">Cancel</localize></a>                        
                </div>  
            </div>
    

    I though why the extra html? so I tired this doing this and that works just aswell.

            <div ng-if="allowDelete === false">
                 <umb-confirm on-cancel="cancel">
                </umb-confirm>
        </div>
    

    Or is there as reason why we use the extra html here?

    //Johannes

  • Dave Woestenborghs 3216 posts 10808 karma points MVP 4x admin c-trib
    Apr 17, 2019 @ 07:11
    Dave Woestenborghs
    1

    Hi Johannes,

    Don't remember why I did it like this. I probably had a good reason at the time. Maybe it was not supported in older versions of Umbraco to only have cancel action on the umb-confirm action.

    But like I said. I don't remember.

    I'm in the middle of rewriting Nexu for umbraco V8. So i'm not going to spent a lot of time on the version for V7 anymore

    Dave

Please Sign in or register to post replies

Write your reply to:

Draft