fixed consolidation
This commit is contained in:
@@ -98,7 +98,7 @@ Vue.component('device-zabbix-consolidation', {
|
||||
|
||||
<tt-modal v-if="zabbixCreateModal.show" :show.sync="zabbixCreateModal.show" title="Gerät in Zabbix anlegen" @submit="submitCreateZabbixHost" :save-loading="zabbixCreateModal.loading">
|
||||
<p>Bitte wählen Sie ein Template für das Gerät <strong>{{ zabbixCreateModal.deviceName }}</strong>.</p>
|
||||
<tt-select label="Template" :options="zabbixCreateModal.templates" v-model="zabbixCreateModal.selectedTemplateId" sm row required/>
|
||||
<tt-select label="Template" :options="zabbixCreateModal.templates" multiple v-model="zabbixCreateModal.selectedTemplateId" sm row required/>
|
||||
</tt-modal>
|
||||
</div>
|
||||
</tt-card>
|
||||
@@ -180,7 +180,7 @@ Vue.component('device-zabbix-consolidation', {
|
||||
try {
|
||||
const response = await axios.post(`${window.TT_CONFIG.API_URL}?do=createZabbixHost`, {
|
||||
deviceId: this.zabbixCreateModal.deviceId,
|
||||
templateId: this.zabbixCreateModal.selectedTemplateId
|
||||
templateIds: this.zabbixCreateModal.selectedTemplateId
|
||||
});
|
||||
if (response.data.success) {
|
||||
window.notify('success', response.data.message);
|
||||
|
||||
Reference in New Issue
Block a user