Commit Graph

23 Commits

Author SHA1 Message Date
Dominik Csapak
a144e5343d fix #2632: use alternative api call for user black/whitelist
which expects the entry as parameter instead of part of the path
this allows all special characters to be included in the entry

in the url, some characters were problematic (e.g. '/') and not properly
handled by the api in the backend

we use Ext.applyIf (which copies the non-existant entries to params) here
instead of getting the ExtraParams from the proxy and setting '.address'
(that would modify the ExtraParams of the proxy and send unwanted
parameters to subsequent api calls like the list-loading)

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2020-03-11 12:07:29 +01:00
Dominik Csapak
d387246f48 show emptyText when no users are available to select
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2019-02-26 10:52:13 +01:00
Dominik Csapak
c1f045cdf3 limit userlist to the respective list
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2019-02-26 10:51:58 +01:00
Dominik Csapak
c41c360014 allow multiselect for user white- and blacklist
this allows to delete multiple entries at once

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2019-02-26 10:51:32 +01:00
Dominik Csapak
d0d381a817 add missing encodeURIComponent
some data contains special characters that might make problems in urls,
so encode them

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2019-02-20 09:19:59 +01:00
Stoiko Ivanov
573a6e8b71 add onlineHelp properties to all edit windows
Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>
2018-10-03 14:32:24 +02:00
Dominik Csapak
64fb657f83 improve gettext usage
optimized a few string
EMail/Email/E-mail -> E-Mail
No Data in Database/No data in database. -> No data in database
etc.

removed 'Outlook 2007' from gettext
added some strings to gettext where they were missing
(e.g. Active, etc.)

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2018-01-24 06:26:26 +01:00
Dominik Csapak
18b5b6adce rename create to isCreate
following the changes in the edit window, we have to use
isCreate instead of create, which gets rid of many jslint
type confusion errors

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2017-11-14 11:40:42 +01:00
Dominik Csapak
c17f9fe4d0 jslint: if needs a block
single statements after if can be confusing

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2017-10-23 17:30:58 +02:00
Dominik Csapak
131ba4f60a jslint: add missing semicolons
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2017-10-23 17:30:43 +02:00
Dominik Csapak
de0ebd99a1 jslint: type confusion
resolve/mark several type confusions

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2017-10-23 17:30:26 +02:00
Dominik Csapak
771bd0b94b jslint: remove trailing commas
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2017-10-23 17:29:17 +02:00
Dominik Csapak
ff735274ca jslint: add Proxmox global to files
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2017-10-23 17:28:56 +02:00
Dominik Csapak
5810fc6bea add emptytext to user white/blacklist
so that we get feedback that there is no data when using
an email which has no white/blacklist

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2017-10-09 06:42:28 +02:00
Dominik Csapak
a32f9554d9 add vtype to email selector in white/blacklist
and check if it is valid before making an api request

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2017-10-09 06:41:50 +02:00
Dominik Csapak
e8dbe19576 do not use autoload
instead of autoloading (which leads to api errors in the admin interface)
we load it instantly only in the quarantineview
(we load it anyway in the admin interface when selecting an email)

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2017-10-09 06:41:05 +02:00
Dominik Csapak
96fba078bf add missing htmlEncode
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2017-10-09 06:39:40 +02:00
Dominik Csapak
2f8fe1a335 add missing clearbeforeload arguments for monStoreErrors
otherwise we gat double loading masks

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2017-10-09 06:37:16 +02:00
Dominik Csapak
99bba12c7f improve login/logout/cookie behaviour
this changes the login/logout/cookie behaviour

if you go to /quarantine
    you get to the loginview
    except you have a valid cookie
    or you have a ticket via url (this takes precedence)

    when you have a valid login
	you go to the quarantineview
else if you have not a quarantine ticket
    you get to the mainview
else
    you get to the loginview

also adds a logout button to the quarantineview
and moves the viewchange/logout logic to the Application.js

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2017-10-05 12:51:38 +02:00
Dominik Csapak
50531ef945 get rid of unnecessary borders
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2017-09-19 11:35:19 +02:00
Dominik Csapak
7d51f9ff94 add email combobox to black/whitelist
so that we can show it in the admin interface too

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2017-09-12 07:20:51 +02:00
Dietmar Maurer
161f4504c3 implement user Blacklist/Whitelist GUI 2017-08-17 14:38:39 +02:00
Dietmar Maurer
0277bfebf0 add new quarantine view 2017-04-30 11:19:28 +02:00