Add latest client helpers

This commit is contained in:
Chocobozzz 2020-04-15 16:13:04 +02:00
parent 82fd4f7414
commit ed3ac5bd41
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
3 changed files with 17 additions and 1 deletions

View File

@ -29,6 +29,20 @@ function register ({ registerHook, peertubeHelpers }) {
}
})
peertubeHelpers.showModal({
title: 'my super modal',
content: 'hello, do you like my modal?',
close: true,
cancel: {
value: 'Cancel',
action: () => console.log('Canceled')
},
confirm: {
value: 'Confirm',
action: () => console.log('Confirmed')
}
})
}
export {

View File

@ -45,6 +45,8 @@ function register ({ registerHook, peertubeHelpers }) {
return result
}
})
peertubeHelpers.notifier.info('you are on the watch page', 'useless', 1000)
}
export {

View File

@ -1,6 +1,6 @@
{
"name": "peertube-plugin-hello-world",
"version": "0.0.14",
"version": "0.0.15",
"description": "Hello world PeerTube plugin example",
"engine": {
"peertube": ">=1.3.0"