Skip to content

Commit

Permalink
Add notifications on triggering/completing QRM update (#72)
Browse files Browse the repository at this point in the history
  • Loading branch information
wederbn authored Jul 25, 2023
1 parent 5912db3 commit 92df886
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,12 @@ export default function QuantMEPluginButton() {
// trigger initial QRM update
updateQRMs().then(response => {
console.log('Update of QRMs completed: ', response);
NotificationHandler.getInstance().displayNotification({
type: 'info',
title: 'Successfully updated QRMs',
content: 'Loaded ' + response.length + ' QRMs from configured repository!',
duration: 4000
});
}).catch(e => {
NotificationHandler.getInstance().displayNotification({
type: 'warning',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -165,8 +165,20 @@ export default class QuantMEController extends PureComponent {
}

updateQRMs() {
NotificationHandler.getInstance().displayNotification({
type: 'info',
title: 'QRMs update triggered',
content: 'Triggered QRM update from configured repository!',
duration: 4000
});
updateQRMs().then(response => {
console.log('Update of QRMs completed: ', response);
NotificationHandler.getInstance().displayNotification({
type: 'info',
title: 'Successfully updated QRMs',
content: 'Loaded ' + response.length + ' QRMs from configured repository!',
duration: 4000
});
}).catch(e => {
NotificationHandler.getInstance().displayNotification({
type: 'warning',
Expand Down

0 comments on commit 92df886

Please sign in to comment.