Skip to content

Commit

Permalink
resolved conflicts.
Browse files Browse the repository at this point in the history
  • Loading branch information
suraj-webkul committed Nov 7, 2024
2 parents 4848b68 + 108e423 commit b442ace
Show file tree
Hide file tree
Showing 12 changed files with 24 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -362,11 +362,9 @@ public function massUpdate(MassUpdateRequest $massUpdateRequest): JsonResponse
foreach ($leads as $lead) {
Event::dispatch('lead.update.before', $lead->id);

$this->leadRepository->update(
['lead_pipeline_stage_id' => $massUpdateRequest->input('value')],
$lead->id,
['lead_pipeline_stage_id']
);
$lead = $this->leadRepository->find($lead->id);

$lead?->update(['lead_pipeline_stage_id' => $massUpdateRequest->input('value')]);

Event::dispatch('lead.update.before', $lead->id);
}
Expand All @@ -376,7 +374,7 @@ public function massUpdate(MassUpdateRequest $massUpdateRequest): JsonResponse
]);
} catch (\Exception $th) {
return response()->json([
'message' => trans('admin::app.leads.destroy-failed'),
'message' => trans('admin::app.leads.update-failed'),
], 400);
}
}
Expand Down
8 changes: 8 additions & 0 deletions packages/Webkul/Admin/src/Resources/assets/css/app.css
Original file line number Diff line number Diff line change
Expand Up @@ -622,3 +622,11 @@
.tox .tox-toolbar__group:last-child button[aria-disabled="true"] {
@apply cursor-not-allowed opacity-50;
}

.tox .tox-toolbar__group:last-child button {
@apply !bg-transparent;
}

.tox .tox-toolbar__group:last-child button:hover {
@apply border-0 !bg-[#3389ec] text-white shadow-none;
}
1 change: 1 addition & 0 deletions packages/Webkul/Admin/src/Resources/lang/ar/app.php
Original file line number Diff line number Diff line change
Expand Up @@ -1654,6 +1654,7 @@
'leads' => [
'create-success' => 'تم إنشاء العميل المحتمل بنجاح.',
'update-success' => 'تم تحديث العميل المحتمل بنجاح.',
'update-failed' => 'Leads can not be deleted.',
'destroy-success' => 'تم حذف العميل المحتمل بنجاح.',
'destroy-failed' => 'لا يمكن حذف العميل المحتمل.',

Expand Down
3 changes: 2 additions & 1 deletion packages/Webkul/Admin/src/Resources/lang/en/app.php
Original file line number Diff line number Diff line change
Expand Up @@ -1653,7 +1653,8 @@

'leads' => [
'create-success' => 'Lead created successfully.',
'update-success' => 'Lead updated successfully.',
'update-success' => 'Leads updated successfully.',
'update-failed' => 'Leads can not be deleted.',
'destroy-success' => 'Lead deleted successfully.',
'destroy-failed' => 'Lead can not be deleted.',

Expand Down
1 change: 1 addition & 0 deletions packages/Webkul/Admin/src/Resources/lang/es/app.php
Original file line number Diff line number Diff line change
Expand Up @@ -1654,6 +1654,7 @@
'leads' => [
'create-success' => 'Lead creado exitosamente.',
'update-success' => 'Lead actualizado exitosamente.',
'update-failed' => 'No se pueden eliminar los clientes potenciales.',
'destroy-success' => 'Lead eliminado exitosamente.',
'destroy-failed' => 'No se puede eliminar el lead.',

Expand Down
1 change: 1 addition & 0 deletions packages/Webkul/Admin/src/Resources/lang/fa/app.php
Original file line number Diff line number Diff line change
Expand Up @@ -1654,6 +1654,7 @@
'leads' => [
'create-success' => 'سرنخ با موفقیت ایجاد شد.',
'update-success' => 'سرنخ با موفقیت به‌روزرسانی شد.',
'update-failed' => 'سرنخ‌ها قابل حذف نیستند.',
'destroy-success' => 'سرنخ با موفقیت حذف شد.',
'destroy-failed' => 'سرنخ قابل حذف نیست.',

Expand Down
1 change: 1 addition & 0 deletions packages/Webkul/Admin/src/Resources/lang/tr/app.php
Original file line number Diff line number Diff line change
Expand Up @@ -1654,6 +1654,7 @@
'leads' => [
'create-success' => 'Lead başarıyla oluşturuldu.',
'update-success' => 'Lead başarıyla güncellendi.',
'update-failed' => 'Potansiyel müşteriler silinemez.',
'destroy-success' => 'Lead başarıyla silindi.',
'destroy-failed' => 'Lead silinemedi.',

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,7 @@ class="cursor-pointer rounded-md p-1.5 text-2xl transition-all hover:bg-gray-200
data() {
return {
viewType: (new URLSearchParams(window.location.search))?.get('view-type') || 'table',
viewType: '{{ request('view-type') }}' || 'table',
};
},
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<div
ref="sidebar"
class="duration-80 fixed top-[60px] z-[10002] h-full w-[200px] border-r border-gray-200 bg-white pt-4 transition-all group-[.sidebar-collapsed]/container:w-[70px] dark:border-gray-800 dark:bg-gray-900 max-lg:hidden"
class="duration-80 fixed top-[60px] z-[10002] h-full w-[200px] border-gray-200 bg-white pt-4 transition-all group-[.sidebar-collapsed]/container:w-[70px] dark:border-gray-800 dark:bg-gray-900 max-lg:hidden ltr:border-r rtl:border-l"
@mouseover="handleMouseOver"
@mouseleave="handleMouseLeave"
>
Expand Down Expand Up @@ -36,7 +36,7 @@ class="flex gap-2 p-1.5 items-center cursor-pointer hover:rounded-lg {{ $menuIte
class="absolute top-0 hidden flex-col bg-gray-100 ltr:left-[200px] rtl:right-[199px]"
:class="[isMenuActive && (hoveringMenu == '{{$menuItem->getKey()}}') ? '!flex' : 'hidden']"
>
<div class="sidebar-rounded fixed z-[1000] h-full min-w-[140px] max-w-max border-r bg-white pt-4 after:-right-[30px] dark:border-gray-800 dark:bg-gray-900 max-lg:hidden">
<div class="sidebar-rounded fixed z-[1000] h-full min-w-[140px] max-w-max bg-white pt-4 after:-right-[30px] dark:border-gray-800 dark:bg-gray-900 max-lg:hidden ltr:border-r rtl:border-x">
<div class="journal-scroll h-[calc(100vh-100px)] overflow-hidden">
<nav class="grid w-full gap-2">
@foreach ($menuItem->getChildren() as $subMenuItem)
Expand All @@ -60,4 +60,4 @@ class="flex gap-2.5 p-2 items-center cursor-pointer hover:rounded-lg {{ $subMenu
@endforeach
</nav>
</div>
</div>
</div>
1 change: 0 additions & 1 deletion public/admin/build/assets/app-1b23879e.css

This file was deleted.

1 change: 1 addition & 0 deletions public/admin/build/assets/app-62037ade.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion public/admin/build/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@
"src": "node_modules/vue-cal/dist/i18n/zh-hk.es.js"
},
"src/Resources/assets/css/app.css": {
"file": "assets/app-1b23879e.css",
"file": "assets/app-62037ade.css",
"isEntry": true,
"src": "src/Resources/assets/css/app.css"
},
Expand Down

0 comments on commit b442ace

Please sign in to comment.