Commit Graph

283 Commits

Author SHA1 Message Date
Dominik Csapak
ff0ee46d29 setEmptyText when when loading the store with an email selected
so that we get 'no data' instead of 'no email selected'

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2017-10-09 06:40:15 +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
793ac2e46e remove unnecessary 'new Ext.menu.Menu'
this is implicit when having an object as 'menu' property

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2017-10-09 06:39:19 +02:00
Dominik Csapak
201f1b7030 check if the call was successful
if not, we return, otherwise we run into an javascript exception

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2017-10-09 06:38:50 +02:00
Dominik Csapak
00564597e5 execute stopUpdate on 'deactivate'
when we have a panel/grid with an updatestore which starts
on activation, we also have to stop it on deactivation,
otherwise those stores gets updated even when we are on another tab

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2017-10-09 06:38:04 +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
Dietmar Maurer
7c3ac540cc LoginView.js - allow to select a realm 2017-10-06 12:41:12 +02:00
Dietmar Maurer
6cbc3de350 Application.js - initialize state provider here
So that we can also use it for LoginView.
2017-10-06 12:35:18 +02:00
Dietmar Maurer
d853d9a254 SpamDetectorOptions.js - new option bounce_score 2017-10-06 11:44:52 +02:00
Dietmar Maurer
9114dc424f RuleConfiguration.js - monitor storage errors 2017-10-06 08:29:35 +02:00
Dominik Csapak
2fa0b5059a reuse do quarantineAction
and make it possible to show both subscription and action window after
one another

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2017-10-06 07:31:22 +02:00
Dominik Csapak
ac5fcb29ad do not send pam field on automatic login
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2017-10-06 07:30:34 +02:00
Dominik Csapak
7bd1a4b7dc remove superfluous/wrong 'xcalss'
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2017-10-06 07:30:08 +02:00
Dominik Csapak
207471c040 select mail when coming from link in SpamQuarantine mail
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2017-10-06 07:29:58 +02:00
Dietmar Maurer
07d37f5946 MailTracker.js - encode html 2017-10-05 13:32:37 +02:00
Dominik Csapak
c45e23e4ac make PMG header look like the PVE header
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2017-10-05 12:57:35 +02:00
Dominik Csapak
dd502c643d add colors and icons to trackingcenter
add icons for all of the stati,
and background colors for bounced/quarantine/blocked

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2017-10-05 12:56:56 +02:00
Dominik Csapak
0960034c27 use rowexpander for trackingcenter logs
instead of opening a window with the log,
use the rowexpander and display the logs inline

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2017-10-05 12:56:41 +02:00
Dominik Csapak
c4ff49f761 add status icons to utils
used later for the tracking center

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2017-10-05 12:56:20 +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
13444d537a fix typo
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2017-10-04 12:55:53 +02:00
Dominik Csapak
afbec2f819 check if current StateProvider is already the right one
else we get an error on logout -> login

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2017-10-04 12:55:26 +02:00
Dominik Csapak
ad02dfe776 add title to Subscription panel
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2017-10-04 12:54:52 +02:00
Dietmar Maurer
282d45fb73 change lang cookie name to PMGLangCookie 2017-10-04 11:33:02 +02:00
Dietmar Maurer
65921b407b LoginView.js - correctly mask loginwindow on language change 2017-10-04 11:27:32 +02:00
Dietmar Maurer
de4f1b8aa0 remove obsolete LoginWindow.js 2017-10-04 11:24:17 +02:00
Dietmar Maurer
775b9a7d54 add language selector 2017-10-04 11:23:17 +02:00
Dietmar Maurer
24e6dc95f8 ClusterAdministration.js - display subscription status for all members 2017-10-03 14:51:41 +02:00
Dietmar Maurer
54fd9bd875 add help button to subscription upload window 2017-10-03 14:50:56 +02:00
Dietmar Maurer
9584871dc7 display subscription status after login 2017-09-29 10:41:13 +02:00
Dominik Csapak
4700c0375b hide column headers for spam level info
they dont give any useful information

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2017-09-29 09:42:59 +02:00
Dietmar Maurer
c811498512 SpamInfoGrid.js - use single store object
And only set/change url.
2017-09-29 08:02:02 +02:00
Dietmar Maurer
b4c60642b6 SpamInfoGrid.js - score need to be a numeric field
To make grid summary working.
2017-09-29 07:24:34 +02:00
Dietmar Maurer
f34abacac7 SpamInfoGrid.js - avoid border 2017-09-29 07:11:33 +02:00
Dominik Csapak
56b4528f24 add missing titles for quarantines
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2017-09-28 15:16:34 +02:00
Dominik Csapak
387aeedfca use VirusQuarantine and change icon for SpamQuarantine
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2017-09-28 14:47:19 +02:00
Dominik Csapak
644f752b75 add VirusQuarantine component
this adds the VirusQuarantine component, which is mostly copied from
the SpamQuarantine but the relevant things changed

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2017-09-28 14:47:06 +02:00
Dominik Csapak
2d1f7824e4 make SpamQuarantine use the QuarantineList and SpamInfoGrid
this changes the SpamQuarantine so it uses the refactored version
of the list, and add the function to show the spaminfo
in a table

also it changes from "show html"/"show raw" buttons to
a single button which gets toggled

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2017-09-28 14:46:56 +02:00
Dominik Csapak
cf5268ca8a add doQuarantineAction and sender_renderer
doQuarantineAction executes a quarantine action with a callback

sender_renderer is the renderer for the quarantine list

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2017-09-28 14:44:38 +02:00
Dominik Csapak
79a3f18d31 add SpamInfoGrid component
this component will be used to show the Spam info in the quarantine
in a nice tabular format

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2017-09-28 14:43:49 +02:00
Dominik Csapak
75fcb6fdde add QuarantineList component
this component is a refactored version of the PMG.SpamList
component, but it incorporates the logic and layout for
changing dates/emails from the PMG.SpamQuarantine component

additionally, it has some logic to show/hide the email selection box
via a config property ('emailSelection')

this will be used for the SpamQuarantine in admin/user view and
for the virus quarantine

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2017-09-28 14:43:33 +02:00
Dominik Csapak
2468e1a139 jslint: empty block
reverse logic of if block to avoid empty block

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2017-09-28 14:42:52 +02:00
Dominik Csapak
6355fc2cfe jslint: correct escaping
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2017-09-28 14:42:39 +02:00
Dominik Csapak
7a3b5e2d5e jslint: not declared variable, missing semicolon, parseInt base
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2017-09-28 14:42:24 +02:00
Dominik Csapak
ea07c9aa8e jslint: type confusion
fix many type confusions

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2017-09-28 14:42:13 +02:00
Dominik Csapak
acc1fedeea jslint: use dot notation
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2017-09-28 14:41:57 +02:00
Dominik Csapak
749af0601a jslint: trailing commas
fix many trailing commas

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2017-09-28 14:41:43 +02:00
Dominik Csapak
2c1d504e90 jslint: globals
adds the global object proxmox to most files

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2017-09-28 14:41:31 +02:00
Dominik Csapak
05e2764be8 multiply cpu and iowait with 100
since the charts expect values from 0-100 instead of 0-1

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2017-09-28 14:39:45 +02:00
Dietmar Maurer
28580cc2af Subscription.js - add onlineHelp 2017-09-27 17:45:12 +02:00