Initial commit
This commit is contained in:
21
lib/assets/javascripts/dashboard/data/map-url-model.js
Normal file
21
lib/assets/javascripts/dashboard/data/map-url-model.js
Normal file
@@ -0,0 +1,21 @@
|
||||
const UrlModel = require('dashboard/data/url-model');
|
||||
|
||||
/**
|
||||
* URL for a map (derived vis).
|
||||
*/
|
||||
const MapUrlModel = UrlModel.extend({
|
||||
|
||||
edit: function () {
|
||||
return this.urlToPath('map');
|
||||
},
|
||||
|
||||
public: function () {
|
||||
return this.urlToPath('public_map');
|
||||
},
|
||||
|
||||
deepInsights: function () {
|
||||
return this.urlToPath('deep-insights');
|
||||
}
|
||||
});
|
||||
|
||||
module.exports = MapUrlModel;
|
||||
Reference in New Issue
Block a user