mirror of
https://github.com/louislam/uptime-kuma.git
synced 2024-12-03 11:44:03 +00:00
🐛 fix(remote-browser): Remove unused test() function (#4155)
* fix * fix lint * Update Notifications.vue * Update ActionInput.vue
This commit is contained in:
parent
46432618e1
commit
db7a92a74c
3 changed files with 3 additions and 13 deletions
|
@ -1,5 +1,5 @@
|
|||
const { R } = require("redbean-node");
|
||||
const { testRemoteBrowser } = require("./monitor-types/real-browser-monitor-type.js");
|
||||
|
||||
class RemoteBrowser {
|
||||
|
||||
/**
|
||||
|
@ -67,16 +67,6 @@ class RemoteBrowser {
|
|||
await R.trash(bean);
|
||||
}
|
||||
|
||||
/**
|
||||
* Tests the connection to Remote Browser
|
||||
* @param {object} remoteBrowser Docker host to check for
|
||||
* @returns {boolean} Returns if connection worked
|
||||
*/
|
||||
static async test(remoteBrowser) {
|
||||
const testResult = await testRemoteBrowser(remoteBrowser.id, remoteBrowser.user_id);
|
||||
return testResult;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
module.exports = {
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
:placeholder="placeholder"
|
||||
:disabled="!enabled"
|
||||
>
|
||||
<button class="btn btn-outline-primary" @click="action()" :aria-label="actionAriaLabel">
|
||||
<button class="btn btn-outline-primary" :aria-label="actionAriaLabel" @click="action()">
|
||||
<font-awesome-icon :icon="icon" />
|
||||
</button>
|
||||
</div>
|
||||
|
|
|
@ -60,7 +60,7 @@
|
|||
<div class="mt-1 mb-3 ps-2 cert-exp-days col-12 col-xl-6">
|
||||
<div v-for="day in settings.tlsExpiryNotifyDays" :key="day" class="d-flex align-items-center justify-content-between cert-exp-day-row py-2">
|
||||
<span>{{ day }} {{ $tc("day", day) }}</span>
|
||||
<button type="button" class="btn-rm-expiry btn btn-outline-danger ms-2 py-1" @click="removeExpiryNotifDay(day)" :aria-label="$t('Remove the expiry notification')">
|
||||
<button type="button" class="btn-rm-expiry btn btn-outline-danger ms-2 py-1" :aria-label="$t('Remove the expiry notification')" @click="removeExpiryNotifDay(day)">
|
||||
<font-awesome-icon icon="times" />
|
||||
</button>
|
||||
</div>
|
||||
|
|
Loading…
Reference in a new issue