diff --git a/packages/Webkul/Admin/src/Resources/assets/js/components/navigation/notification-list.vue b/packages/Webkul/Admin/src/Resources/assets/js/components/navigation/notification-list.vue index 4e12e1ebb..471a1111a 100644 --- a/packages/Webkul/Admin/src/Resources/assets/js/components/navigation/notification-list.vue +++ b/packages/Webkul/Admin/src/Resources/assets/js/components/navigation/notification-list.vue @@ -29,7 +29,7 @@
- #{{ notification.order.id }} {{ordertype.pending.message}} + #{{ notification.order.id }} {{orderTypeMessages.pending}}
@@ -42,7 +42,7 @@
- #{{ notification.order.id }} {{ordertype.canceled.message}} + #{{ notification.order.id }} {{orderTypeMessages.canceled}}
@@ -55,7 +55,7 @@
- #{{ notification.order.id }} {{ordertype.completed.message}} + #{{ notification.order.id }} {{orderTypeMessages.completed}}
@@ -68,7 +68,7 @@
- #{{ notification.order.id }} {{ordertype.processing.message}} + #{{ notification.order.id }} {{orderTypeMessages.processing}}
@@ -81,7 +81,7 @@
- #{{ notification.order.id }} {{ordertype.closed.message}} + #{{ notification.order.id }} {{orderTypeMessages.closed}}
@@ -113,7 +113,8 @@ 'pusherCluster', 'title', 'orderStatus', - 'noRecordText' + 'noRecordText', + 'orderStatusMessages' ], data: function() { @@ -144,7 +145,8 @@ message: 'Order Closed' }, }, - orderTypeStatus: JSON.parse(this.orderStatus) + orderTypeStatus: JSON.parse(this.orderStatus), + orderTypeMessages: JSON.parse(this.orderStatusMessages) } }, diff --git a/packages/Webkul/Admin/src/Resources/assets/js/components/navigation/notification.vue b/packages/Webkul/Admin/src/Resources/assets/js/components/navigation/notification.vue index 3e6e494bc..ddc208f79 100644 --- a/packages/Webkul/Admin/src/Resources/assets/js/components/navigation/notification.vue +++ b/packages/Webkul/Admin/src/Resources/assets/js/components/navigation/notification.vue @@ -15,7 +15,7 @@
- #{{ notification.order.id }} {{ordertype.pending.message}} + #{{ notification.order.id }} {{orderTypeMessages.pending}}
@@ -28,7 +28,7 @@
- #{{ notification.order.id }} {{ordertype.canceled.message}} + #{{ notification.order.id }} {{orderTypeMessages.canceled}}
@@ -41,7 +41,7 @@
- #{{ notification.order.id }} {{ordertype.completed.message}} + #{{ notification.order.id }} {{orderTypeMessages.completed}}
@@ -54,7 +54,7 @@
- #{{ notification.order.id }} {{ordertype.processing.message}} + #{{ notification.order.id }} {{orderTypeMessages.processing}}
@@ -67,7 +67,7 @@
- #{{ notification.order.id }} {{ordertype.closed.message}} + #{{ notification.order.id }} {{orderTypeMessages.closed}}
@@ -98,7 +98,8 @@ export default { 'title', 'viewAllTitle', 'getReadAllUrl', - 'readAllTitle' + 'readAllTitle', + 'orderStatusMessages' ], data(){ @@ -127,13 +128,16 @@ export default { message: 'Order Closed' } }, - totalUnRead: 0 + totalUnRead: 0, + orderTypeMessages:JSON.parse(this.orderStatusMessages) } }, mounted(){ this.getNotification(); + console.log(this.orderTypeMessages); + if(this.pusherKey != undefined && this.pusherCluster != undefined){ Echo = new Echo({ broadcaster: 'pusher', @@ -147,7 +151,6 @@ export default { }); Echo.channel('notification').listen('.update-notification', (e) => { - console.log(e); this.notifications.forEach((notification)=>{ if(notification.order_id == e.id){ notification.order.status = e.status; diff --git a/packages/Webkul/Admin/src/Resources/assets/sass/partials/_dark.scss b/packages/Webkul/Admin/src/Resources/assets/sass/partials/_dark.scss index e729e255e..f921541eb 100644 --- a/packages/Webkul/Admin/src/Resources/assets/sass/partials/_dark.scss +++ b/packages/Webkul/Admin/src/Resources/assets/sass/partials/_dark.scss @@ -11,6 +11,7 @@ .navbar-top-left { background-color: #071e37; + border-bottom: 1px solid $seprator; } .profile-info { diff --git a/packages/Webkul/Admin/src/Resources/lang/en/app.php b/packages/Webkul/Admin/src/Resources/lang/en/app.php index 50c08e6ae..37334e9be 100755 --- a/packages/Webkul/Admin/src/Resources/lang/en/app.php +++ b/packages/Webkul/Admin/src/Resources/lang/en/app.php @@ -1603,6 +1603,13 @@ return [ 'view-all' => 'View All Notifications', 'no-record' => 'No Record Found', 'read-all' => 'Mark as Read', - 'notification-marked-success' => 'Notification Marked Successfully' + 'notification-marked-success' => 'Notification Marked Successfully', + 'order-status-messages' => [ + 'completed' => 'Order Completed', + 'closed' => 'Order Closed', + 'canceled' => 'Order Canceled', + 'pending' => 'Order Pending', + 'processing' => 'Order Processing', + ] ], ]; diff --git a/packages/Webkul/Admin/src/Resources/views/layouts/nav-top.blade.php b/packages/Webkul/Admin/src/Resources/views/layouts/nav-top.blade.php index 61943821c..a21d2cf2f 100755 --- a/packages/Webkul/Admin/src/Resources/views/layouts/nav-top.blade.php +++ b/packages/Webkul/Admin/src/Resources/views/layouts/nav-top.blade.php @@ -1,3 +1,13 @@ +@php + $orderStatusMessages = [ + 'pending' => trans('admin::app.notification.order-status-messages.pending'), + 'canceled'=> trans('admin::app.notification.order-status-messages.canceled'), + 'closed' => trans('admin::app.notification.order-status-messages.closed'), + 'completed'=> trans('admin::app.notification.order-status-messages.completed'), + 'processing' => trans('admin::app.notification.order-status-messages.processing') + ]; +@endphp +