Skip to content

Commit

Permalink
Merge pull request #1895 from amit-webkul/header-email-compose
Browse files Browse the repository at this point in the history
🛠️ [v2.0] : Fixed Issue #1819
  • Loading branch information
devansh-webkul authored Jan 13, 2025
2 parents 1410786 + b96bdbb commit 0d7a060
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ class="block w-full rounded-3xl border bg-white px-10 py-1.5 leading-6 text-gray
<!-- Link to send new Mail-->
@if (bouncer()->hasPermission('mail.create'))
<div class="rounded-lg bg-white p-2 hover:bg-gray-100 dark:bg-gray-800 dark:hover:bg-gray-950">
<a href="{{ route('admin.mail.index', ['route' => 'inbox']) }}">
<a href="{{ route('admin.mail.index', ['route' => 'inbox', 'openModal' => 'true']) }}">
<div class="flex flex-col gap-1">
<i class="icon-mail text-2xl text-gray-600"></i>

Expand Down
14 changes: 11 additions & 3 deletions packages/Webkul/Admin/src/Resources/views/mail/index.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,11 +60,11 @@ class="primary-button"
>
{!! view_render_event('admin.mail.'.request('route').'.datagrid.before') !!}
<!-- DataGrid -->
<x-admin::datagrid
<!-- DataGrid -->
<x-admin::datagrid
ref="datagrid"
:src="route('admin.mail.index', request('route'))"
>
>
<template #header="{
isLoading,
available,
Expand Down Expand Up @@ -412,6 +412,14 @@ class="primary-button"
};
},
mounted() {
const params = new URLSearchParams(window.location.search);
if (params.get('openModal')) {
this.$refs.toggleComposeModal.toggle();
}
},
methods: {
truncatedReply(reply) {
const maxLength = 100;
Expand Down

0 comments on commit 0d7a060

Please sign in to comment.