diff --git a/plugin.html b/plugin.html index 79f07c8..a831972 100644 --- a/plugin.html +++ b/plugin.html @@ -21,8 +21,10 @@ + + diff --git a/test-plugin.js b/test-plugin.js index 10c9fd7..ee2c3e3 100644 --- a/test-plugin.js +++ b/test-plugin.js @@ -20,7 +20,7 @@ function reply() { } function alertDialog() { - Front.dialog('alert', { + Front.alert({ title: 'I\'m an alert dialog', message: 'You are now alerted', }, function () { @@ -28,8 +28,17 @@ function alertDialog() { }); } +function reportDialog() { + Front.report({ + title: 'I\'m a report dialog', + message: 'You have been reported' + }, function() { + console.log('Report closed'); + }); +} + function confirmDialog() { - Front.dialog('confirm', { + Front.confirm({ title: 'I\'m a confirm dialog', message: 'Do you confirm', okTitle: 'OK Button', @@ -43,7 +52,7 @@ function confirmDialog() { } function promptDialog() { - Front.dialog('prompt', { + Front.prompt({ title: 'I\'m a prompt dialog', message: 'Please enter something' }, function (data) { @@ -54,6 +63,10 @@ function promptDialog() { }); } +function copyText() { + Front.copyToClipboard('Front is awesome!'); +} + function fetchTeammates() { Front.fetchAllowedTeammates(function (teammates) { if (!teammates)