Skip to content

Commit

Permalink
Merge pull request louislam#2869 from chakflying/fix/clone-monitor-tags
Browse files Browse the repository at this point in the history
Fix: assign tags when cloning monitor
  • Loading branch information
louislam authored Mar 4, 2023
2 parents 36aef2a + ad26f0e commit 44077b3
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion src/pages/EditMonitor.vue
Original file line number Diff line number Diff line change
Expand Up @@ -936,7 +936,16 @@ message HealthCheckResponse {
this.monitor.includeSensitiveData = undefined;
this.monitor.maintenance = undefined;
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
Expand Down

0 comments on commit 44077b3

Please # to comment.