diff --git a/uw-frame-components/js/app-config.js b/uw-frame-components/js/app-config.js index 00015690f..62dd1d81d 100644 --- a/uw-frame-components/js/app-config.js +++ b/uw-frame-components/js/app-config.js @@ -22,7 +22,7 @@ define(['angular'], function(angular) { 'shibbolethSessionURL' : null, //'/Shibboleth.sso/Session.json' 'portalLayoutRestEndpoint' : null, //'/portal/api/layout', 'widgetApi': { - 'entry': '/portal/api/marketplace/entry/', // For local testing, change to 'staticFeeds/' + 'entry': '/portal/api/portlet/', // For local testing, change to 'staticFeeds/' 'entries': '/portal/api/marketplace/entries.json' } }) diff --git a/uw-frame-components/portal/widgets/controllers.js b/uw-frame-components/portal/widgets/controllers.js index da2411258..7c50e1468 100644 --- a/uw-frame-components/portal/widgets/controllers.js +++ b/uw-frame-components/portal/widgets/controllers.js @@ -39,7 +39,7 @@ define(['angular'], function(angular) { /** * Initial widget setup -- gets data for a single widget from the provided fname attribute */ - var initializeWidget = function(fname) { + var initializeWidget = function(fname, unremovable) { // Initialize scope variables $scope.widget = {}; $scope.widgetType = ''; @@ -54,6 +54,7 @@ define(['angular'], function(angular) { if (data) { $scope.widget = data; $scope.widgetType = widgetType(data); + $scope.cantRemove = unremovable; } }) .catch(function(error) { @@ -83,7 +84,7 @@ define(['angular'], function(angular) { // Initialize the widget if ($scope.fname) { - initializeWidget($scope.fname); + initializeWidget($scope.fname, $scope.unremovable); } else { $log.warn('WidgetCardController didn\'t get an fname.'); } diff --git a/uw-frame-components/portal/widgets/directives.js b/uw-frame-components/portal/widgets/directives.js index ba4268dff..9906e5f0c 100644 --- a/uw-frame-components/portal/widgets/directives.js +++ b/uw-frame-components/portal/widgets/directives.js @@ -11,7 +11,8 @@ define(['angular', 'require'], function(angular, require) { return { restrict: 'E', scope: { - fname: '@' + fname: '@', + unremovable : '=?', }, templateUrl: require.toUrl('./partials/widget-card.html'), controller: 'WidgetCardController' diff --git a/uw-frame-components/portal/widgets/partials/type__option-link.html b/uw-frame-components/portal/widgets/partials/type__option-link.html index 2836f07d3..b4d2de376 100644 --- a/uw-frame-components/portal/widgets/partials/type__option-link.html +++ b/uw-frame-components/portal/widgets/partials/type__option-link.html @@ -3,7 +3,7 @@ diff --git a/uw-frame-components/portal/widgets/partials/widget-card.html b/uw-frame-components/portal/widgets/partials/widget-card.html index 8cbb491bd..7dd0390b0 100644 --- a/uw-frame-components/portal/widgets/partials/widget-card.html +++ b/uw-frame-components/portal/widgets/partials/widget-card.html @@ -70,7 +70,7 @@
- +