Copied to clipboard

Flag this post as spam?

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


  • Paul de Quant 403 posts 1521 karma points
    Jun 30, 2016 @ 10:10
    Paul de Quant
    1

    Disable Upgrade Button on Umbraco Forms

    Hello,

    Does anyone know of a way to suppress the Upgrade button on Umbraco Forms.

    We don't want certain users to be able to perform this action - until the update as been vetted for issues internally.

    Many thanks

    Paul

  • Dennis Adolfi 1082 posts 6450 karma points MVP 6x c-trib
    Jun 30, 2016 @ 10:56
    Dennis Adolfi
    0

    Hi Paul.

    Looking at the view /App_Plugins/UmbracoForms/Backoffice/Dashboards it does´nt look like there is a on/off switch for the upgrade button. However if you´d just want to disable it temporaraly for everyone, you could just add a negative to the div container like:

    <div ng-if="version.upgradeAvailable && false">
    
            <div class="row-fluid">
                <div class="span8">
                    <h3>There is new version available</h3>
                    <p>
                        You can now install Umbraco forms {{version.remoteVersion}}
                    </p>
                </div>
                <div class="span4 umb-db-form-action">
                    <button class="btn btn-primary btn-blue" ng-hide="installing" ng-click="upgrade()">Upgrade now</button>
                </div>
            </div>
    
    
            <div style="width: 99%; overflow: hidden" ng-if="installing">
                <p>Downloading and upgrading forms...</p>
                <div class="umb-loader"></div>
            </div>
    
            <hr/>
        </div>
    

    And then remove it when you´d like to upgrade. It´s not a perfect solution since you wont notice new versions. A nice feature would be to have it as a configuration in the /App_Plugins/UmbracoForms/UmbracoForms.config. Maybe there is a option to use, otherwise maybe submit it as a feature request?

  • Paul de Quant 403 posts 1521 karma points
    Jun 30, 2016 @ 11:29
    Paul de Quant
    1

    Hi Dennis,

    Thanks for getting back to me, I'll give it a try and let you know.

    Thanks again for the help.

    Cheers

    Paul

  • Dennis Adolfi 1082 posts 6450 karma points MVP 6x c-trib
    Jun 30, 2016 @ 14:59
    Dennis Adolfi
    0

    Yes please do, hope it helps. Take care!

  • Dennis Adolfi 1082 posts 6450 karma points MVP 6x c-trib
    Jul 05, 2016 @ 15:08
    Dennis Adolfi
    0

    Hi Paul.

    Did you give this a go or did you go for the feature request?

  • Paul de Quant 403 posts 1521 karma points
    Jul 05, 2016 @ 15:23
    Paul de Quant
    1

    Hi Dennis,

    I haven't got round to it just yet, however I'll probably wait until I know there's a new forms update so I can test the code works before implementing it -i.e. it hides the upgrade button.

    Thanks

    Paul

  • Mads Krohn 211 posts 504 karma points c-trib
    Dec 12, 2016 @ 12:17
    Mads Krohn
    1

    Just stumpled upon this post, thought I'd share my hacky solution :)
    I've simply made a plugin with a manifest and a single css file, which has the following hacky selector:

    div[ng-controller="UmbracoForms.Dashboards.LicensingController"]
        div[ng-if="version.upgradeAvailable && isAdminUser"] {
        display: none;
    }
    

    This will break of course if the Umbraco Forms licensing view is updated in a future update, but for now it seems like the less intrusive way to fix the issue.

    Cheers

  • Chris Ashton 57 posts 89 karma points
    Dec 20, 2016 @ 17:43
    Chris Ashton
    0

    Hi Paul,

    I've had a similar issue on a major UK PLC's website – didn't go down so well, particularly as this circumvents any change control processes that may be in place.

    I've created a ticket for this issue in the Umbraco tracker – it'd be great if you could up vote the issue:

    http://issues.umbraco.org/issue/CON-1234

    Cheers, Chris

  • Paul de Quant 403 posts 1521 karma points
    Dec 21, 2016 @ 07:43
    Paul de Quant
    0

    It's got my vote :)

    Cheers

    Paul

  • Mike Beale 38 posts 132 karma points
    Dec 21, 2016 @ 08:37
    Mike Beale
    1

    At the very least the upgrade message should only be shown to admin users.

    It should never be shown for standard content/editor users

  • 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