diff --git a/peertube-plugin-hello-world/client/search-client-plugin.js b/peertube-plugin-hello-world/client/search-client-plugin.js index 641051d..d0e8d60 100644 --- a/peertube-plugin-hello-world/client/search-client-plugin.js +++ b/peertube-plugin-hello-world/client/search-client-plugin.js @@ -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 { diff --git a/peertube-plugin-hello-world/client/video-watch-client-plugin.js b/peertube-plugin-hello-world/client/video-watch-client-plugin.js index 008fefc..7deb2ef 100644 --- a/peertube-plugin-hello-world/client/video-watch-client-plugin.js +++ b/peertube-plugin-hello-world/client/video-watch-client-plugin.js @@ -45,6 +45,8 @@ function register ({ registerHook, peertubeHelpers }) { return result } }) + + peertubeHelpers.notifier.info('you are on the watch page', 'useless', 1000) } export { diff --git a/peertube-plugin-hello-world/package.json b/peertube-plugin-hello-world/package.json index 86c2260..1cbf977 100644 --- a/peertube-plugin-hello-world/package.json +++ b/peertube-plugin-hello-world/package.json @@ -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"