Fix viewing detail resources

The setup behind this has changed upstream, see [1]. We need to adopt this.

[1] https://bugs.launchpad.net/horizon/+bug/1641250

Change-Id: Id5fc6c74b152af90eb0815c003c3289f40a60e4c
Closes-Bug: 1715417
This commit is contained in:
Jens Harbott 2017-09-11 14:34:33 +00:00
parent 2dbf9d18b6
commit a750ac77c2
3 changed files with 11 additions and 5 deletions

View File

@ -45,6 +45,7 @@
}
run.$inject = [
'horizon.app.core.detailRoute',
'horizon.framework.conf.resource-type-registry.service',
'designatedashboard.resources.os-designate-floatingip.api',
'designatedashboard.resources.os-designate-floatingip.resourceType',
@ -52,6 +53,7 @@
];
function run(
detailRoute,
registry,
api,
resourceTypeString,
@ -97,7 +99,7 @@
id: 'address',
priority: 1,
sortDefault: true,
template: '<a ng-href="{$ \'project/ngdetails/OS::Designate::FloatingIp/\' + item.id $}">{$ item.address $}</a>'
template: '<a ng-href="{$ \'' + detailRoute + 'OS::Designate::FloatingIp/\' + item.id $}">{$ item.address $}</a>'
})
.append({
id: 'ptrdname',

View File

@ -73,6 +73,7 @@
}
run.$inject = [
'horizon.app.core.detailRoute',
'horizon.framework.conf.resource-type-registry.service',
'designatedashboard.resources.os-designate-recordset.api',
'designatedashboard.resources.os-designate-recordset.resourceType',
@ -80,7 +81,8 @@
'designatedashboard.resources.util'
];
function run(registry,
function run(detailRoute,
registry,
recordSetApi,
resourceTypeString,
typeMap,
@ -160,7 +162,7 @@
sortDefault: true,
filters: ['noName'],
// For link format, see pathGenerator in details.module.js
template: '<a ng-href="{$ \'project/ngdetails/OS::Designate::RecordSet/\' + item.zone_id + \'/\' + item.id $}">{$ item.name $}</a>'
template: '<a ng-href="{$ \'' + detailRoute + 'OS::Designate::RecordSet/\' + item.zone_id + \'/\' + item.id $}">{$ item.name $}</a>'
})
.append({
id: 'type',

View File

@ -45,13 +45,15 @@
}
run.$inject = [
'horizon.app.core.detailRoute',
'horizon.framework.conf.resource-type-registry.service',
'designatedashboard.resources.os-designate-zone.api',
'designatedashboard.resources.os-designate-zone.resourceType',
'designatedashboard.resources.util'
];
function run(registry,
function run(detailRoute,
registry,
zoneApi,
resourceTypeString,
util) {
@ -133,7 +135,7 @@
id: 'name',
priority: 1,
sortDefault: true,
template: '<a ng-href="{$ \'project/ngdetails/OS::Designate::Zone/\' + item.id $}">{$ item.name $}</a>'
template: '<a ng-href="{$ \'' + detailRoute + 'OS::Designate::Zone/\' + item.id $}">{$ item.name $}</a>'
})
.append({
id: 'type',