Commit Graph
16 Commits
Author SHA1 Message Date
Carlos QuintanaandAdrià Casajús a70baad478 Implement Alias Trash (#2417)
* wip: start implementing alias trash

* Added alias trash dashboard page

* test: delete_alias changes

* Format html

* fix: mailbox deletion

* feat: add delete_alias_action setting in dashboard settings

* chore: disable alias when trashing it

* Add restore tests

* Move tras/restore to alias_actions

* rename alias_actions to alias_delete

* Remove alias_actions

* Send events and alias audit log on alias restore

* feat: adapt queries to trashed alias

* chore: add metrics on alias trash actions

* fix: missing empty arg

* Add rate limit for restore and restore all

* fix: mailbox alias count

* feat: properly handle alias deletion for custom domain deletion

* chore: add error logs

* chore: update alias trash copy + change Trash location

* feat: make can_create_new_alias not take trashed aliases into account

* chore: update mailbox deletion dialog copy

---------

Co-authored-by: Adrià Casajús <adria.casajus@proton.ch>
2025-03-18 10:10:56 +01:00
Adrià Casajús 1482bb4a33 Add to static js also the headers (#2153)
* Add to static js also the headers

* Move all header generation to a function
2024-07-11 12:28:22 +00:00
D-Bao 23a4e46885 add option to show/hide stats in aliases page (#1697) 2023-04-22 21:16:03 +02:00
D-Bao e3ae9bc6d5 Replace save/update buttons with an auto save feature (#1685)
* replace save/update buttons with auto save feature

* minor css improvement
2023-04-11 22:52:44 +02:00
046748c443 Update pre-commit (#1138)
* Update pre-commit

* Upgrade djlint, remove flake8 and add pylint

* Reformat with new djlint version

* Run pre-commit on CI

* Use only python3.10 on CI

* Reformat files with pre-commit

* Run pre-commit against all files

* Reformat

* Added global excludes

* Added pre-commit to the contributing file

* Set python 3.9 as default

* Set language version to python3

Co-authored-by: Adrià Casajús <adria.casajus@proton.ch>
Co-authored-by: Carlos Quintana <carlos.quintana@proton.ch>
2022-07-04 16:01:04 +02:00
Son 1fd9a344d4 refactor 2021-11-03 10:53:39 +01:00
Son ba16234456 create .jshintrc file, set esversion=8 2021-11-03 10:20:21 +01:00
Son Nguyen Kim 98b472d925 use "pin" instead of "favorite" 2021-09-19 19:50:50 +02:00
Son Nguyen Kim 4b184998bc make alias note always visible. Rename it to description 2021-08-21 16:11:17 +02:00
Son NK 2ad1b75e45 change wording 2021-03-22 15:40:17 +01:00
Son NK f0fb5108f9 show a different message for custom domain alias when deleting 2021-03-18 14:45:18 +01:00
Son NK 8bb324e82b propose users to disable an alias instead of deleting it 2021-03-18 14:21:26 +01:00
Son NK 9dede0a281 remove unused var 2021-03-18 13:54:14 +01:00
Son NK bcfc846af3 refactor: extract disableAlias() 2021-03-18 13:52:58 +01:00
Son NK 89c69ad625 refactor index.js 2021-03-18 13:52:13 +01:00
Son NK 91e805a637 move js part in index to a separate file 2021-03-18 12:34:08 +01:00