fix: update serverTagsManager to use serverId from the function parameter for improved clarity
This commit is contained in:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user