Add latest client helpers
This commit is contained in:
@ -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 {
|
||||
|
@ -45,6 +45,8 @@ function register ({ registerHook, peertubeHelpers }) {
|
||||
return result
|
||||
}
|
||||
})
|
||||
|
||||
peertubeHelpers.notifier.info('you are on the watch page', 'useless', 1000)
|
||||
}
|
||||
|
||||
export {
|
||||
|
Reference in New Issue
Block a user