Initial commit
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
var UrlModel = require('dashboard/data/url-model');
|
||||
var DashboardVisUrlModel = require('dashboard/data/dashboard-vis-url-model');
|
||||
var DashboardDatasetsUrlModel = require('dashboard/data/dashboard-datasets-url-model');
|
||||
/**
|
||||
* URLs associated with the dashboard.
|
||||
*/
|
||||
var DashboardUrlModel = UrlModel.extend({
|
||||
|
||||
datasets: function () {
|
||||
return new DashboardDatasetsUrlModel({
|
||||
base_url: this.urlToPath('datasets')
|
||||
});
|
||||
},
|
||||
|
||||
maps: function () {
|
||||
return new DashboardVisUrlModel({
|
||||
base_url: this.urlToPath('maps')
|
||||
});
|
||||
},
|
||||
|
||||
deepInsights: function () {
|
||||
return new DashboardVisUrlModel({
|
||||
base_url: this.urlToPath('deep-insights')
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
module.exports = DashboardUrlModel;
|
||||
Reference in New Issue
Block a user