Add nginject to permissions modal

This commit is contained in:
Mo Bitar
2018-01-30 10:33:28 -06:00
parent 3d97eb1816
commit 4281ed730c
2 changed files with 3 additions and 2 deletions

View File

@@ -29,6 +29,7 @@ class PermissionsModal {
} }
controller($scope, modelManager) { controller($scope, modelManager) {
'ngInject';
$scope.permissionsString = function() { $scope.permissionsString = function() {
var finalString = ""; var finalString = "";

View File

@@ -19,10 +19,10 @@ class Component extends Item {
mapContentToLocalProperties(content) { mapContentToLocalProperties(content) {
super.mapContentToLocalProperties(content) super.mapContentToLocalProperties(content)
/* Legacy */ /* Legacy */
this.url = content.url; this.url = content.url || content.hosted_url;
/* New */ /* New */
this.local_url = content.local_url; this.local_url = content.local_url;
this.hosted_url = content.hosted_url; this.hosted_url = content.hosted_url || content.url;
this.offlineOnly = content.offlineOnly; this.offlineOnly = content.offlineOnly;
if(content.valid_until) { if(content.valid_until) {