1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-07-19 13:29:41 +02:00
portainer/app/docker/components/volumesCIFSForm/volumesCifsFormModel.js
Maxime Bajeux ebac85b462
feat(volumes): add a switch to use CIFS volumes (#3823)
* feat(volumes): add a switch to use CIFS volumes

* feat(volumes): switch between nfs and cifs

* feat(volumes): autofix sharepoint, hide driveroptions and allow to create unnammed volume

* feat(volumes): change cifs version select options

* feat(volumes): change few things
2020-05-15 13:28:51 +12:00

15 lines
536 B
JavaScript

export function VolumesCIFSFormData() {
this.useCIFS = false;
this.serverAddress = '';
this.share = '';
this.version = 'CIFS v2.0 (Used by Windows Vista / Server 2008)';
this.versions = [
'CIFS v1.0 (Used by Windows XP / Server 2003 and earlier)',
'CIFS v2.0 (Used by Windows Vista / Server 2008)',
'CIFS v2.1 (Used by Windows 7 / Server 2008 R2)',
'CIFS 3.0 (Used by Windows 8 / Server 2012 and newer)',
];
this.versionsNumber = ['1.0', '2.0', '2.1', '3.0'];
this.username = '';
this.password = '';
}