2021-09-17 01:07:03 -07:00
< template >
< div class = "mb-3" >
2021-09-20 22:02:41 -07:00
< label for = "apprise-url" class = "form-label" > { { $t ( "Apprise URL" ) } } < / label >
2021-09-17 01:07:03 -07:00
< input id = "apprise-url" v -model = " $ parent.notification.appriseURL " type = "text" class = "form-control" required >
< div class = "form-text" >
2021-09-20 22:02:41 -07:00
< p > { { $t ( "Example:" , [ "twilio://AccountSid:AuthToken@FromPhoneNo" ] ) } } < / p >
< i18n -t keypath = "Read more:" tag = "p" >
< a href = "https://github.com/caronc/apprise/wiki#notification-services" target = "_blank" > https : //github.com/caronc/apprise/wiki#notification-services</a>
< / i 1 8 n - t >
2021-09-17 01:07:03 -07:00
< / div >
< / div >
< div class = "mb-3" >
2021-09-20 22:02:41 -07:00
< i18n -t keypath = "Status:" tag = "p" >
2021-09-22 01:20:59 -07:00
< span v-if ="appriseInstalled" class="text-primary" > {{ $ t ( " Apprise is installed. " ) }} < / span >
< span v -else class = "text-danger" > { { $t ( "Apprise is not installed." ) } } < a href = "https://github.com/caronc/apprise" target = "_blank" > { { $t ( "Read more" ) } } < / a > < / span >
2021-09-20 22:02:41 -07:00
< / i 1 8 n - t >
2021-09-17 01:07:03 -07:00
< / div >
< / template >
< script >
export default {
data ( ) {
return {
2021-09-17 01:54:50 -07:00
appriseInstalled : false
2021-09-17 01:07:03 -07:00
}
} ,
2021-09-17 01:54:50 -07:00
mounted ( ) {
this . $root . getSocket ( ) . emit ( "checkApprise" , ( installed ) => {
this . appriseInstalled = installed ;
} )
} ,
2021-09-17 01:07:03 -07:00
}
< / script >