Files
Tony Murray 300645388f Dispatcher Service settings (#11760)
* Poller settings WIP

* Poller settings WIP2

* working on SettingMultiple

* setting multiple working

* settings sent with all required info

* fix translation

* Fix keys

* fix groups setting

* Apply settings to service
fixes and validations for setting

* don't error when no poller_cluster entry exists

* hid tab when no poller cluster entries

* Authorization

* make prod

* daily maintenance toggle should be advanced

* Update schema def
2020-06-08 08:27:03 -05:00

78 lines
2.3 KiB
Vue

<!--
- PollerSettings.vue
-
- Description-
-
- 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 3 of the License, or
- (at your option) any later version.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>.
-
- @package LibreNMS
- @link http://librenms.org
- @copyright 2020 Tony Murray
- @author Tony Murray <murraytony@gmail.com>
-->
<template>
<div class="panel panel-default">
<div class="panel-heading">
<h3 class="panel-title">
{{ $t('Poller Settings') }}
<span class="pull-right">Advanced <toggle-button v-model="advanced"></toggle-button></span>
</h3>
</div>
<div class="panel-body">
<vue-tabs direction="vertical" type="pills">
<v-tab :title="poller.poller_name" v-for="(poller, id) in pollers" :key="id">
<div class="setting-container clearfix"
v-for="setting in settings[id]"
v-if="!setting.advanced || advanced"
:key="setting.name">
<librenms-setting
prefix="poller.settings"
:setting='setting'
:id="poller.id"
></librenms-setting>
</div>
</v-tab>
</vue-tabs>
</div>
</div>
</template>
<script>
export default {
name: "PollerSettings",
props: {
'pollers': Object,
'settings': Object
},
data() {
return {
advanced: false
}
},
}
</script>
<style>
.tab-content {
width: 100%;
}
</style>
<style scoped>
.setting-container {
margin-bottom: 10px;
}
</style>