@enso-ui/notifications 2.0.12 → 2.0.13
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/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
<div class="level is-mobile">
|
|
5
5
|
<div class="level-item"
|
|
6
6
|
v-if="notifications.length">
|
|
7
|
-
<a class="button is-success
|
|
7
|
+
<a class="button is-success"
|
|
8
8
|
@click="readAll">
|
|
9
9
|
<span>{{ i18n("Mark all read") }}</span>
|
|
10
10
|
<span class="icon is-small">
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
</div>
|
|
26
26
|
<div class="level-item is-marginless"
|
|
27
27
|
v-if="notifications.length">
|
|
28
|
-
<a class="button is-warning
|
|
28
|
+
<a class="button is-warning ml-1"
|
|
29
29
|
@click="destroyAll">
|
|
30
30
|
<span>{{ i18n("Clear all") }}</span>
|
|
31
31
|
<span class="icon is-small">
|
|
@@ -154,7 +154,7 @@ export default {
|
|
|
154
154
|
},
|
|
155
155
|
updateAll() {
|
|
156
156
|
this.notifications.forEach(notification => {
|
|
157
|
-
notification.read_at = notification.read_at || format(new Date(), 'Y-
|
|
157
|
+
notification.read_at = notification.read_at || format(new Date(), 'Y-M-D H:i:s');
|
|
158
158
|
});
|
|
159
159
|
|
|
160
160
|
this.unreadCount = 0;
|