Add nginject to permissions modal
This commit is contained in:
@@ -29,6 +29,7 @@ class PermissionsModal {
|
|||||||
}
|
}
|
||||||
|
|
||||||
controller($scope, modelManager) {
|
controller($scope, modelManager) {
|
||||||
|
'ngInject';
|
||||||
|
|
||||||
$scope.permissionsString = function() {
|
$scope.permissionsString = function() {
|
||||||
var finalString = "";
|
var finalString = "";
|
||||||
|
|||||||
@@ -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) {
|
||||||
|
|||||||
Reference in New Issue
Block a user