mirror of
https://github.com/louislam/uptime-kuma.git
synced 2025-07-27 00:35:53 -04:00
Added JSDoc for src/components/*
Signed-off-by: Matthew Nickson <mnickson@sidingsmedia.com>
This commit is contained in:
parent
d939d03690
commit
2b42c3c828
20 changed files with 152 additions and 3 deletions
|
@ -125,11 +125,16 @@ export default {
|
|||
},
|
||||
methods: {
|
||||
|
||||
/** Show dialog to confirm deletion */
|
||||
deleteConfirm() {
|
||||
this.modal.hide();
|
||||
this.$refs.confirmDelete.show();
|
||||
},
|
||||
|
||||
/**
|
||||
* Show settings for specified notification
|
||||
* @param {number} notificationID ID of notification to show
|
||||
*/
|
||||
show(notificationID) {
|
||||
if (notificationID) {
|
||||
this.id = notificationID;
|
||||
|
@ -152,6 +157,7 @@ export default {
|
|||
this.modal.show();
|
||||
},
|
||||
|
||||
/** Submit the form to the server */
|
||||
submit() {
|
||||
this.processing = true;
|
||||
this.$root.getSocket().emit("addNotification", this.notification, this.id, (res) => {
|
||||
|
@ -170,6 +176,7 @@ export default {
|
|||
});
|
||||
},
|
||||
|
||||
/** Test the notification endpoint */
|
||||
test() {
|
||||
this.processing = true;
|
||||
this.$root.getSocket().emit("testNotification", this.notification, (res) => {
|
||||
|
@ -178,6 +185,7 @@ export default {
|
|||
});
|
||||
},
|
||||
|
||||
/** Delete the notification endpoint */
|
||||
deleteNotification() {
|
||||
this.processing = true;
|
||||
this.$root.getSocket().emit("deleteNotification", this.id, (res) => {
|
||||
|
@ -190,6 +198,7 @@ export default {
|
|||
});
|
||||
},
|
||||
/**
|
||||
* Get a unique default name for the notification
|
||||
* @param {keyof NotificationFormList} notificationKey
|
||||
* @return {string}
|
||||
*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue