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 156 posts 840 karma points c-trib
    Apr 17, 2019 @ 06:46
    Johannes Lantz
    0

    content-delete.html

    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 3504 posts 12135 karma points MVP 9x 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

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies