Commit Graph

11 Commits

Author SHA1 Message Date
Thomas Lamprecht
0c77529cc5 ui: cifs: make user and password independent from each other
the guest account can be password protected, as can a user have no
password - so don't enforce either if the other is set.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2020-07-01 12:02:34 +02:00
Thomas Lamprecht
fcd95fc1d2 ui: cifs: monitor scan-store errors and show in combobox
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2020-07-01 12:02:25 +02:00
Thomas Lamprecht
bc13cc36d3 ui: cifs: reset proxy cache also if user or password change
not only on server address change.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2020-07-01 11:50:45 +02:00
Thomas Lamprecht
6bea400ee6 ui: cifs: eslint fixes
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2020-07-01 11:20:44 +02:00
Dominik Csapak
96988dfae0 fix #2017: add help button to storage input panels
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2018-12-07 14:09:14 +01:00
Thomas Lamprecht
dad14ab0e0 ui/storage: cifs: reoder fields
username, password and domain name are all related, they are non-pve
options related to accessing the CIFS storage and have all influence
on the pveCIFSScan component.
So group at kleast user and password together. But keep domain on the
right for the sake of balance.
Move the content type selector to the right, as the RBD and other
panels do.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2018-07-02 10:25:14 +02:00
Thomas Lamprecht
cb1b342713 ui/storage: cifs: exit early from username change cb on displaying
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2018-06-29 13:00:15 +02:00
Thomas Lamprecht
1364fb1bd4 ui/storage: cifs: only allow entering a password if user is set
we ignore the password in the backend if no user is passed,
which can be very confusing for the user - or more important, me,
when testing cifs/storage stuff.

So change the mechanics slightly. Previously we changed the
allowBlank property of the password field if username was changed.
I set it to always required, but disable the whole field if we do not
have a username.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2018-06-29 12:55:28 +02:00
Thomas Lamprecht
0247bb30fd trivial: ui: cifs: cleanup unnecessary lines
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2018-06-29 12:54:00 +02:00
Thomas Lamprecht
f28ec3e4b3 ui: add storage plugin base class
This removes *a lot* of code duplication.

I add a base class for the storage edit window and for its containing
input panel, they implement the shared stuff. Especially the window
was mostly a 1:1 copy...

I look hard for a way to split up this patch, but I did not really
found one which would not generate a lot of work for no value added
(value being 'revertability' and better git history here).
nd actually not too much happens, the same thing happens just over
and over again.
Thus, I've thrown in the dynamic creation of the storage add menu
items here too.

I remove all storage specific Edit windows, they where all just >95%
duplicates of each other.
Special functionallity, i.e. some data deletion/transforming before
submitting gets done with onGetValues.

For the RBD external vs PVE plugin I just added a minimal child class
to RBD which only tells it'S parent that it is the pve one, this is
nice for the mapping and should be easy to understand when reading
the code.

Tried to test an add and an edit of all visible storage plugins,
seems to be OK now.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2018-03-28 13:19:41 +02:00
Wolfgang Link
ca9a198ac7 Add cifs storage plugin 2018-03-19 12:56:13 +01:00