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

    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">
            <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>                        

    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">

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


  • Dave Woestenborghs 3431 posts 11702 karma points MVP 7x admin c-trib
    Apr 17, 2019 @ 07:11
    Dave Woestenborghs

    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


Please Sign in or register to post replies

Write your reply to: