2018-08-23 13:13:02 +00:00
|
|
|
/*
|
|
|
|
* Wazuh app - Wazuh configuration item directive
|
|
|
|
* Copyright (C) 2018 Wazuh, Inc.
|
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
* the Free Software Foundation; either version 2 of the License, or
|
|
|
|
* (at your option) any later version.
|
|
|
|
*
|
|
|
|
* Find more information about this on the LICENSE file.
|
|
|
|
*/
|
|
|
|
|
2018-09-19 09:38:10 +00:00
|
|
|
import template from './wz-config-item.html';
|
2018-08-23 13:13:02 +00:00
|
|
|
import { uiModules } from 'ui/modules';
|
|
|
|
|
|
|
|
const app = uiModules.get('app/wazuh', []);
|
|
|
|
|
2018-09-19 09:38:10 +00:00
|
|
|
app.directive('wzConfigItem', function() {
|
|
|
|
return {
|
|
|
|
restrict: 'E',
|
|
|
|
scope: {
|
|
|
|
label: '@label',
|
2018-09-20 11:06:42 +00:00
|
|
|
value: '=value',
|
|
|
|
isArray: '=isArray'
|
2018-09-19 09:38:10 +00:00
|
|
|
},
|
|
|
|
template: template
|
|
|
|
};
|
2018-08-23 13:13:02 +00:00
|
|
|
});
|