Browse Source

publish muk_web_utils - 12.0

pull/35/head
MuK IT GmbH 6 years ago
parent
commit
df96f3bb7f
  1. 2
      muk_web_utils/__manifest__.py
  2. 1
      muk_web_utils/static/src/js/services/notification_service.js
  3. 5
      muk_web_utils/static/src/js/widgets/notification.js

2
muk_web_utils/__manifest__.py

@ -20,7 +20,7 @@
{
"name": "MuK Web Utils",
"summary": """Utility Features""",
"version": "12.0.2.4.3",
"version": "12.0.2.4.4",
"category": "Extra Tools",
"license": "AGPL-3",
"author": "MuK IT",

1
muk_web_utils/static/src/js/services/notification_service.js

@ -24,7 +24,6 @@ var NotificationService = require('web.NotificationService');
NotificationService.include({
progress: function (notificationId, progress) {
console.log(this)
if(notificationId in this.notifications) {
var notification = this.notifications[notificationId];
notification.updateProgress(progress.state, progress.text);

5
muk_web_utils/static/src/js/widgets/notification.js

@ -34,12 +34,9 @@ Notification.include({
this.progress = params.progress;
},
updateProgress: function(state, text) {
console.log(state, text)
this.progress = {state: state, text: text};
this.$(".progress-bar").animate({
width: state + "%",
}, 250);
this.$(".progress-bar").text(text);
this.$(".progress-bar").width(state + "%");
},
});
Loading…
Cancel
Save