Added almost all features except language, ads, seo, pages
This commit is contained in:
@@ -41,8 +41,7 @@ class Action extends Component
|
||||
}
|
||||
|
||||
$this->email = ZEmail::createCustomEmail($this->username, $this->domain);
|
||||
$this->dispatch('updateEmail');
|
||||
$this->dispatch('closeModal');
|
||||
return redirect()->route('mailbox');
|
||||
|
||||
}
|
||||
public function random() {
|
||||
@@ -50,10 +49,8 @@ class Action extends Component
|
||||
return $this->showAlert('error', __('You have reached daily limit of maximum ') . json_decode(config('app.settings.configuration_settings'))->email_limit . __(' temp mail addresses.'));
|
||||
}
|
||||
$this->email = ZEmail::generateRandomEmail();
|
||||
$this->dispatch('updateEmail');
|
||||
$this->dispatch('closeModal');
|
||||
|
||||
//$this->redirect(route('mailbox'));
|
||||
return redirect()->route('mailbox');
|
||||
}
|
||||
|
||||
public function gmail() {
|
||||
@@ -61,21 +58,12 @@ class Action extends Component
|
||||
return $this->showAlert('error', __('You have reached daily limit of maximum ') . json_decode(config('app.settings.configuration_settings'))->email_limit . __(' temp mail addresses.'));
|
||||
}
|
||||
$this->email = ZEmail::generateRandomGmail();
|
||||
$this->dispatch('updateEmail');
|
||||
$this->dispatch('closeModal');
|
||||
return redirect()->route('mailbox');
|
||||
}
|
||||
|
||||
public function deleteEmail(): void
|
||||
public function deleteEmail()
|
||||
{
|
||||
ZEmail::removeEmail($this->email);
|
||||
// if (count($this->emails) <= 1 && json_decode(config('app.settings.configuration_settings'))->after_last_email_delete == 'redirect_to_homepage') {
|
||||
// return redirect()->route('home');
|
||||
// }
|
||||
$this->email = ZEmail::getEmail(true);
|
||||
$this->emails = ZEmail::getEmails();
|
||||
|
||||
$this->dispatch('updateEmail');
|
||||
$this->dispatch('closeModal');
|
||||
return redirect()->route('delete', ['email' => $this->email]);
|
||||
}
|
||||
|
||||
private function showAlert($type, $message): void
|
||||
|
||||
Reference in New Issue
Block a user