-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add host envs to make it works with proxy
add github link add searching in to and from headers add confirm modal for deleting mails fix submit event on search input fix notifications
- Loading branch information
Showing
8 changed files
with
78 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
defmodule MailSniffexWeb.Live.ConfirmModal do | ||
use Surface.LiveComponent | ||
|
||
prop title, :string, required: true | ||
prop confirmEvent, :event, required: true | ||
|
||
data show, :boolean, default: false | ||
|
||
|
||
def render(assigns) do | ||
~H""" | ||
<div class={{ "modal", "is-active": @show }}> | ||
<div class="modal-background" :on-click="hide"></div> | ||
<div class="modal-card"> | ||
<header class="modal-card-head"> | ||
<p class="modal-card-title">{{ @title }}</p> | ||
<button class="delete" aria-label="close" :on-click="hide"></button> | ||
</header> | ||
<section class="modal-card-body"> | ||
<slot/> | ||
</section> | ||
<footer class="modal-card-foot" style="justify-content: flex-end"> | ||
<button class="button is-success" :on-click={{@confirmEvent}}>Yes</button> | ||
<button class="button" :on-click="hide">Cancel</button> | ||
</footer> | ||
</div> | ||
</div> | ||
""" | ||
end | ||
|
||
def show(dialog_id) do | ||
send_update(__MODULE__, id: dialog_id, show: true) | ||
end | ||
|
||
def hide(dialog_id) do | ||
send_update(__MODULE__, id: dialog_id, show: false) | ||
end | ||
|
||
def handle_event("show", _, socket) do | ||
{:noreply, assign(socket, show: true)} | ||
end | ||
|
||
def handle_event("hide", _, socket) do | ||
{:noreply, assign(socket, show: false)} | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters