mirror of
https://github.com/valitydev/wazuh-kibana-app.git
synced 2024-11-07 02:15:24 +00:00
22 lines
662 B
JavaScript
22 lines
662 B
JavaScript
require('ui/modules').get('app/wazuh', [])
|
|
.service('sharedProperties', function () {
|
|
var _property = '';
|
|
var _dashboard = { name: undefined, filter: undefined};
|
|
|
|
return {
|
|
getDashboard: function () {
|
|
return _dashboard;
|
|
},
|
|
setDashboard: function (name, filter) {
|
|
_dashboard.name = name;
|
|
_dashboard.filter = filter;
|
|
},
|
|
getProperty: function () {
|
|
return _property;
|
|
},
|
|
setProperty: function (value) {
|
|
_property = value;
|
|
}
|
|
};
|
|
});
|