horizon/openstack_dashboard/static/app/core/core-constants.module.js
Cindy Lu c73e1c8fa8 NG details view route should not be '/project/...'
Right now the route includes the name 'project'
but we may have details view for 'identity' and
'admin' too, so it should be more general.

Picked just 'ngdetails' instead and moved this out as a
constant. Since this constant needs to be used
by the config blocks, I moved it out into its own
constant module.

Change-Id: I7603250dd70eb40568aa74be2ae4821ee8fcefcc
Closes-Bug: #1641250
2017-02-13 13:24:02 -08:00

33 lines
951 B
JavaScript

/*
* (c) Copyright 2016 IBM Corp.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
(function () {
'use strict';
/**
* @ngdoc overview
* @name horizon.app.core.constants
* @description
*
* # horizon.app.core.constants
*
* This module hosts constants used by configuration blocks.
*/
angular
.module('horizon.app.core.constants', [])
.constant('horizon.app.core.detailRoute', 'ngdetails/');
})();