diff --git a/resources/report/bower.json b/resources/report/bower.json index 35893e89..4775b0a0 100644 --- a/resources/report/bower.json +++ b/resources/report/bower.json @@ -30,6 +30,7 @@ "marked": "chjj/marked#~0.3.2", "requirejs": "jrburke/requirejs-bower#~2.1.15", "paper-progress": "Polymer/paper-progress#~0.5.0", - "core-animated-pages": "Polymer/core-animated-pages#~0.5.1" + "core-animated-pages": "Polymer/core-animated-pages#~0.5.1", + "paper-toast": "Polymer/paper-toast#~0.5.1" } } diff --git a/resources/report/js/script.js b/resources/report/js/script.js index 1f197952..f8ae7790 100644 --- a/resources/report/js/script.js +++ b/resources/report/js/script.js @@ -808,7 +808,9 @@ function redatePlugins(evt) { showMessageDialog('Redate Plugins', 'This feature is provided so that modders using the Creation Kit may set the load order it uses. A side-effect is that any subscribed Steam Workshop mods will be re-downloaded by Steam. Do you wish to continue?', false, function(result){ if (result) { loot.query('redatePlugins').then(function(response){ - showMessageBox('Redate Plugins', 'Plugins were successfully redated.'); + var toast = document.getElementById('toast'); + toast.text = 'Plugins were successfully redated.'; + toast.show(); }).catch(processCefError); } }); @@ -834,6 +836,10 @@ function clearAllMetadata(evt) { } } }); + + var toast = document.getElementById('toast'); + toast.text = 'All user-added metadata has been cleared.'; + toast.show(); } }).catch(processCefError); } @@ -889,7 +895,11 @@ function copyContent(evt) { }] }); - loot.query(request).catch(processCefError); + loot.query(request).then(function(){ + var toast = document.getElementById('toast'); + toast.text = "LOOT's content has been copied to the clipboard."; + toast.show(); + }).catch(processCefError); } function areSettingsValid() { /* Validate inputs individually. */ @@ -902,22 +912,6 @@ function areSettingsValid() { } return true; } -function openMenu(evt) { - if (!isVisible(evt.currentTarget.firstElementChild)) { - showElement(evt.currentTarget.firstElementChild) - - /* To prevent the click event closing this menu just after it was - opened, stop the current event and send off a new one. */ - evt.stopPropagation(); - - document.body.dispatchEvent(new CustomEvent('click', { - bubbles: true, - detail: { - newMenu: evt.currentTarget.firstElementChild - } - })); - } -} function switchSidebarTab(evt) { evt.target.nextElementSibling.selected = evt.target.selected; } @@ -1124,7 +1118,11 @@ function handleCopyMetadata(evt) { ] }); - loot.query(request).catch(processCefError); + loot.query(request).then(function(){ + var toast = document.getElementById('toast'); + toast.text = 'The metadata for ' + evt.target.getName() + ' has been copied to the clipboard.'; + toast.show(); + }).catch(processCefError); } function handleClearMetadata(evt) { showMessageDialog('Clear Plugin Metadata', 'Are you sure you want to clear all existing user-added metadata from "' + evt.target.getName() + '"?', false, function(result){ @@ -1155,6 +1153,9 @@ function handleClearMetadata(evt) { break; } } + var toast = document.getElementById('toast'); + toast.text = 'The user-added metadata for ' + evt.target.getName() + ' has been cleared.'; + toast.show(); } }).catch(processCefError); } diff --git a/resources/report/report.html b/resources/report/report.html index dea9527f..2f5fc4ec 100644 --- a/resources/report/report.html +++ b/resources/report/report.html @@ -36,6 +36,7 @@ + @@ -193,6 +194,11 @@ + + + +

Calculating the last digit of π...

+

Version (build )

@@ -262,12 +268,6 @@ along with LOOT. If not, see <http://www.gnu.org/licenses/>. Cancel
- - - -

Calculating the last digit of π...

-
-

This appears to be the first time you have run LOOT v. Here are some tips to help you get started with the interface.