mirror of
				https://github.com/louislam/uptime-kuma.git
				synced 2025-10-31 11:29:20 +08:00 
			
		
		
		
	Show Copy of in front of the cloned monitor name
				
					
				
			This commit is contained in:
		| @@ -441,6 +441,7 @@ | ||||
|     "notificationRegional": "Regional", | ||||
|     "Clone Monitor": "Clone Monitor", | ||||
|     "Clone": "Clone", | ||||
|     "cloneOf": "Clone of {0}", | ||||
|     "smtp": "Email (SMTP)", | ||||
|     "secureOptionNone": "None / STARTTLS (25, 587)", | ||||
|     "secureOptionTLS": "TLS (465)", | ||||
|   | ||||
| @@ -922,13 +922,14 @@ message HealthCheckResponse { | ||||
|                         this.monitor = res.monitor; | ||||
|  | ||||
|                         if (this.isClone) { | ||||
|                             /** | ||||
|                              * Cloning a monitor will include properties that can not be posted to backend | ||||
|                              * as they are not valid columns in the SQLite table. | ||||
|                              */ | ||||
|                             /* | ||||
|                          * Cloning a monitor will include properties that can not be posted to backend | ||||
|                          * as they are not valid columns in the SQLite table. | ||||
|                          */ | ||||
|                             this.monitor.id = undefined; // Remove id when cloning as we want a new id | ||||
|                             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 | ||||
|                         } | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user