fix: update serverTagsManager to use serverId from the function parameter for improved clarity

This commit is contained in:
2025-12-18 20:53:48 -05:00
parent 96001cbecd
commit 29321e9786

View File

@@ -1228,6 +1228,7 @@
// Server Tags Manager - Proxmox-style tags with color generation
function serverTagsManager({serverId, initialTags}) {
return {
serverId: serverId,
show: false,
saving: false,
tags: initialTags || [],
@@ -1294,7 +1295,7 @@
// Filter out empty tags
const validTags = this.editTags.filter(tag => tag.text && tag.text.trim());
fetch(`/proxmox/server/${serverId}/tags`, {
fetch(`/proxmox/server/${this.serverId}/tags`, {
method: 'POST',
headers: {
'Content-Type': 'application/json',