mirror of
https://github.com/louislam/uptime-kuma.git
synced 2024-11-27 12:00:35 +03:00
Fix: assign tags when cloning monitor
This commit is contained in:
parent
beafbf27ad
commit
ad26f0e817
1 changed files with 10 additions and 1 deletions
|
@ -936,7 +936,16 @@ message HealthCheckResponse {
|
||||||
this.monitor.includeSensitiveData = undefined;
|
this.monitor.includeSensitiveData = undefined;
|
||||||
this.monitor.maintenance = undefined;
|
this.monitor.maintenance = undefined;
|
||||||
this.monitor.name = this.$t("cloneOf", [ this.monitor.name ]);
|
this.monitor.name = this.$t("cloneOf", [ this.monitor.name ]);
|
||||||
this.monitor.tags = undefined; // FIXME: Cloning tags does not work yet
|
this.$refs.tagsManager.newTags = this.monitor.tags.map((monitorTag) => {
|
||||||
|
return {
|
||||||
|
id: monitorTag.tag_id,
|
||||||
|
name: monitorTag.name,
|
||||||
|
color: monitorTag.color,
|
||||||
|
value: monitorTag.value,
|
||||||
|
new: true,
|
||||||
|
};
|
||||||
|
});
|
||||||
|
this.monitor.tags = undefined;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Handling for monitors that are created before 1.7.0
|
// Handling for monitors that are created before 1.7.0
|
||||||
|
|
Loading…
Reference in a new issue