fixed consolidation

This commit is contained in:
Luca Haid
2025-08-20 09:40:39 +02:00
parent e27fd1a398
commit ebc06a0208
3 changed files with 26 additions and 12 deletions
@@ -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);