From: Darren Date: Sat, 29 Mar 2014 15:44:13 +0000 (+0000) Subject: Hiding new connection/startup app button if in a restricted server mode X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=72ee1b66186dd916750a1089c1e76cb1a17046fd;p=KiwiIRC.git Hiding new connection/startup app button if in a restricted server mode --- diff --git a/client/src/views/apptoolbar.js b/client/src/views/apptoolbar.js index 5d4b87b..b249b1a 100644 --- a/client/src/views/apptoolbar.js +++ b/client/src/views/apptoolbar.js @@ -5,6 +5,10 @@ _kiwi.view.AppToolbar = Backbone.View.extend({ }, initialize: function () { + // Remove the new connection/startup link if the server has disabled server changing + if (_kiwi.app.server_settings.connection && !_kiwi.app.server_settings.connection.allow_change) { + this.$('.startup').css('display', 'none'); + } }, clickSettings: function (event) {