diff --git a/webadmin/src/views/apps.js b/webadmin/src/views/apps.js index 69bde63c5..ded925029 100644 --- a/webadmin/src/views/apps.js +++ b/webadmin/src/views/apps.js @@ -19,7 +19,7 @@ angular.module('Application').controller('AppsController', ['$scope', '$location portBindings: {}, portBindingsEnabled: {}, portBindingsInfo: {}, - accessRestriction: '', + accessRestriction: null, oauthProxy: false }; @@ -53,7 +53,7 @@ angular.module('Application').controller('AppsController', ['$scope', '$location $scope.appConfigure.location = ''; $scope.appConfigure.password = ''; $scope.appConfigure.portBindings = {}; - $scope.appConfigure.accessRestriction = ''; + $scope.appConfigure.accessRestriction = null; $scope.appConfigure.oauthProxy = false; $scope.appConfigureForm.$setPristine(); @@ -91,7 +91,7 @@ angular.module('Application').controller('AppsController', ['$scope', '$location $scope.appConfigure.app = app; $scope.appConfigure.location = app.location; - $scope.appConfigure.accessRestriction = app.accessRestriction; + $scope.appConfigure.accessRestriction = app.accessRestriction || null; $scope.appConfigure.oauthProxy = app.oauthProxy; $scope.appConfigure.portBindingsInfo = app.manifest.tcpPorts || {}; // Portbinding map only for information $scope.appConfigure.portBindings = {}; // This is the actual model holding the env:port pair diff --git a/webadmin/src/views/appstore.js b/webadmin/src/views/appstore.js index 2af591ea1..2ac771e52 100644 --- a/webadmin/src/views/appstore.js +++ b/webadmin/src/views/appstore.js @@ -16,7 +16,7 @@ angular.module('Application').controller('AppStoreController', ['$scope', '$loca app: {}, location: '', portBindings: {}, - accessRestriction: '', + accessRestriction: null, oauthProxy: false, mediaLinks: [] }; @@ -136,7 +136,7 @@ angular.module('Application').controller('AppStoreController', ['$scope', '$loca $scope.appInstall.error = {}; $scope.appInstall.location = ''; $scope.appInstall.portBindings = {}; - $scope.appInstall.accessRestriction = ''; + $scope.appInstall.accessRestriction = null; $scope.appInstall.oauthProxy = false; $scope.appInstall.installFormVisible = false; $scope.appInstall.mediaLinks = []; @@ -166,8 +166,8 @@ angular.module('Application').controller('AppStoreController', ['$scope', '$loca $scope.appInstall.portBindingsInfo = $scope.appInstall.app.manifest.tcpPorts || {}; // Portbinding map only for information $scope.appInstall.portBindings = {}; // This is the actual model holding the env:port pair $scope.appInstall.portBindingsEnabled = {}; // This is the actual model holding the enabled/disabled flag - $scope.appInstall.accessRestriction = app.accessRestriction || ''; - $scope.appInstall.oauthProxy = app.oauthProxy || false; + $scope.appInstall.accessRestriction = null; + $scope.appInstall.oauthProxy = false; // set default ports for (var env in $scope.appInstall.app.manifest.tcpPorts) {