mirror of
https://github.com/valitydev/wazuh-kibana-app.git
synced 2024-11-07 02:15:24 +00:00
Improved isString method
This commit is contained in:
parent
7c0b9bec14
commit
3a517ba728
@ -33,7 +33,7 @@ class NewConfigurationController {
|
||||
|
||||
this.$scope.getXML = name => this.getXML(name);
|
||||
this.$scope.getJSON = name => this.getJSON(name);
|
||||
this.$scope.isString = item => this.isString(item);
|
||||
this.$scope.isString = item => typeof item === 'string';
|
||||
this.$scope.switchConfigTab = (configurationTab, sections) => this.switchConfigTab(configurationTab, sections);
|
||||
this.$scope.switchConfigurationTab = configurationTab => this.switchConfigurationTab(configurationTab);
|
||||
this.$scope.switchConfigurationSubTab = configurationSubTab => this.switchConfigurationSubTab(configurationSubTab);
|
||||
@ -46,10 +46,6 @@ class NewConfigurationController {
|
||||
this.load();
|
||||
}
|
||||
|
||||
isString(item) {
|
||||
return angular.isString(item);
|
||||
}
|
||||
|
||||
/**
|
||||
* Switchs between configuration tabs
|
||||
* @param {string} configurationTab The configuration tab to open
|
||||
|
Loading…
Reference in New Issue
Block a user