ode-csslib-openent-na 3.4.23-develop-integration.202610050935 → 3.4.23-develop-integration.202610142234
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/js/directives.js +17 -0
- package/dist/portal-v2.html +2 -1
- package/dist/version.txt +2 -2
- package/package.json +1 -1
package/dist/js/directives.js
CHANGED
|
@@ -67,6 +67,23 @@ var addDirectives = function (module, done) {
|
|
|
67
67
|
};
|
|
68
68
|
});
|
|
69
69
|
|
|
70
|
+
// Same badge as the React header (@edifice.io/react/homepage): unread
|
|
71
|
+
// messages of the Carbonio Inbox, exposed as nbCarbonioUnread to the link.
|
|
72
|
+
// Errors stay silent: no badge rather than an error toast on every page.
|
|
73
|
+
module.directive("carbonioUnread", function () {
|
|
74
|
+
return {
|
|
75
|
+
restrict: "A",
|
|
76
|
+
link: function (scope) {
|
|
77
|
+
http()
|
|
78
|
+
.get("/auth/carbonio/unread", {}, { disableNotifications: true })
|
|
79
|
+
.done(function (data) {
|
|
80
|
+
scope.nbCarbonioUnread = data.count;
|
|
81
|
+
scope.$apply("nbCarbonioUnread");
|
|
82
|
+
});
|
|
83
|
+
},
|
|
84
|
+
};
|
|
85
|
+
});
|
|
86
|
+
|
|
70
87
|
module.directive("adminPortal", function ($compile) {
|
|
71
88
|
skin.skin = "admin";
|
|
72
89
|
skin.theme = "/public/admin/default/";
|
package/dist/portal-v2.html
CHANGED
|
@@ -81,7 +81,7 @@
|
|
|
81
81
|
<!-- Carbonio preauth link -->
|
|
82
82
|
<li class="nav-item" ng-if="me.hasWorkflow('org.entcore.auth.controllers.CarbonioPreauthController|preauth')">
|
|
83
83
|
<a class="nav-link position-relative" href="/auth/carbonio/preauth" i18n-title="conversation" target="_blank"
|
|
84
|
-
data-testid="header-messagerie-button">
|
|
84
|
+
data-testid="header-messagerie-button" carbonio-unread>
|
|
85
85
|
<svg width="24" height="24" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg" aria-hidden="true">
|
|
86
86
|
<g clip-path="url(#icon-messages-beta_svg__a-carbonio)">
|
|
87
87
|
<path stroke="#E5A800" stroke-miterlimit="10" stroke-width="2.667" d="m5.93 10.246-4.8 3.088v12.267a5.335 5.335 0 0 0 5.334 5.333h24.534v-17.6l-4.689-3.013"></path>
|
|
@@ -93,6 +93,7 @@
|
|
|
93
93
|
<clipPath id="icon-messages-beta_svg__a-carbonio"><path fill="#fff" d="M0 0h32v32H0z"></path></clipPath>
|
|
94
94
|
</defs>
|
|
95
95
|
</svg>
|
|
96
|
+
<span class="badge bg-warning" ng-if="nbCarbonioUnread">[[nbCarbonioUnread]]</span>
|
|
96
97
|
<span class="nav-text">
|
|
97
98
|
<i18n>conversation</i18n>
|
|
98
99
|
</span>
|
package/dist/version.txt
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
entcore-css-lib
|
|
2
|
-
ode-csslib-openent-na
|
|
1
|
+
entcore-css-lib 12/10/2026 10:09:16
|
|
2
|
+
ode-csslib-openent-na 14/10/2026 22:35:09
|