mirror of
https://github.com/louislam/uptime-kuma.git
synced 2024-12-28 23:19:44 -08:00
Fix getUniqueDefaultName
This commit is contained in:
parent
de7df46aa8
commit
7da48b27a5
|
@ -267,17 +267,16 @@ export default {
|
|||
* @return {string}
|
||||
*/
|
||||
getUniqueDefaultName(notificationKey) {
|
||||
/*
|
||||
|
||||
let index = 1;
|
||||
let name = "";
|
||||
do {
|
||||
name = this.$t("defaultNotificationName", {
|
||||
notification: this.$t(notificationKey).replace(/\(.+\)/, "").trim(),
|
||||
notification: this.notificationNameList[notificationKey].replace(/\(.+\)/, "").trim(),
|
||||
number: index++
|
||||
});
|
||||
} while (this.$root.notificationList.find(it => it.name === name));
|
||||
return name;*/
|
||||
return "123";
|
||||
return name;
|
||||
}
|
||||
},
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue