Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
pve-manager
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
pve-manager
Commits
73b139cd
Commit
73b139cd
authored
Oct 04, 2013
by
Dietmar Maurer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
coding style cleanups
parent
7afb2ab5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
61 additions
and
61 deletions
+61
-61
changelog.Debian
debian/changelog.Debian
+2
-0
ZFSEdit.js
www/manager/storage/ZFSEdit.js
+59
-61
No files found.
debian/changelog.Debian
View file @
73b139cd
...
...
@@ -2,6 +2,8 @@ pve-manager (3.1-19) unstable; urgency=low
* vzdump: remove temporary directories (revert bug introduced by
commit 1bb6e88fd65bb44a745065d2d899832f6ea0a2f5)
* add Editor for new ZFSPlugin
-- Proxmox Support Team <support@proxmox.com> Fri, 04 Oct 2013 06:55:58 +0200
...
...
www/manager/storage/ZFSEdit.js
View file @
73b139cd
...
...
@@ -2,85 +2,83 @@ Ext.define('PVE.storage.ZFSInputPanel', {
extend
:
'
PVE.panel.InputPanel
'
,
onGetValues
:
function
(
values
)
{
var
me
=
this
;
if
(
me
.
create
)
{
values
.
type
=
'
zfs
'
;
values
.
content
=
'
images
'
;
}
else
{
delete
values
.
storage
;
}
values
.
disable
=
values
.
enable
?
0
:
1
;
delete
values
.
enable
;
return
values
;
var
me
=
this
;
if
(
me
.
create
)
{
values
.
type
=
'
zfs
'
;
values
.
content
=
'
images
'
;
}
else
{
delete
values
.
storage
;
}
values
.
disable
=
values
.
enable
?
0
:
1
;
delete
values
.
enable
;
return
values
;
},
initComponent
:
function
()
{
var
me
=
this
;
me
.
column1
=
[
{
xtype
:
me
.
create
?
'
textfield
'
:
'
displayfield
'
,
name
:
'
storage
'
,
height
:
22
,
// hack: set same height as text fields
value
:
me
.
storageId
||
''
,
fieldLabel
:
'
ID
'
,
vtype
:
'
StorageId
'
,
allowBlank
:
false
xtype
:
me
.
create
?
'
textfield
'
:
'
displayfield
'
,
name
:
'
storage
'
,
height
:
22
,
// hack: set same height as text fields
value
:
me
.
storageId
||
''
,
fieldLabel
:
'
ID
'
,
vtype
:
'
StorageId
'
,
allowBlank
:
false
},
{
xtype
:
me
.
create
?
'
textfield
'
:
'
displayfield
'
,
name
:
'
portal
'
,
height
:
22
,
// hack: set same height as text fields
value
:
''
,
fieldLabel
:
gettext
(
'
Portal
'
),
allowBlank
:
false
xtype
:
me
.
create
?
'
textfield
'
:
'
displayfield
'
,
name
:
'
portal
'
,
height
:
22
,
// hack: set same height as text fields
value
:
''
,
fieldLabel
:
gettext
(
'
Portal
'
),
allowBlank
:
false
},
{
xtype
:
me
.
create
?
'
textfield
'
:
'
displayfield
'
,
name
:
'
pool
'
,
height
:
22
,
// hack: set same height as text fields
value
:
''
,
fieldLabel
:
gettext
(
'
Pool
'
),
allowBlank
:
false
xtype
:
me
.
create
?
'
textfield
'
:
'
displayfield
'
,
name
:
'
pool
'
,
height
:
22
,
// hack: set same height as text fields
value
:
''
,
fieldLabel
:
gettext
(
'
Pool
'
),
allowBlank
:
false
},
{
xtype
:
me
.
create
?
'
textfield
'
:
'
displayfield
'
,
name
:
'
blocksize
'
,
height
:
22
,
// hack: set same height as text fields
value
:
'
4k
'
,
fieldLabel
:
gettext
(
'
Block Size
'
),
allowBlank
:
false
xtype
:
me
.
create
?
'
textfield
'
:
'
displayfield
'
,
name
:
'
blocksize
'
,
height
:
22
,
// hack: set same height as text fields
value
:
'
4k
'
,
fieldLabel
:
gettext
(
'
Block Size
'
),
allowBlank
:
false
},
{
xtype
:
me
.
create
?
'
textfield
'
:
'
displayfield
'
,
name
:
'
target
'
,
height
:
22
,
// hack: set same height as text fields
value
:
'
iqn.2010-09.org.openindiana:omnios:....
'
,
fieldLabel
:
gettext
(
'
Target
'
),
allowBlank
:
false
xtype
:
me
.
create
?
'
textfield
'
:
'
displayfield
'
,
name
:
'
target
'
,
height
:
22
,
// hack: set same height as text fields
value
:
'
iqn.2010-09.org.openindiana:omnios:....
'
,
fieldLabel
:
gettext
(
'
Target
'
),
allowBlank
:
false
}
];
me
.
column2
=
[
{
xtype
:
'
pvecheckbox
'
,
name
:
'
enable
'
,
checked
:
true
,
uncheckedValue
:
0
,
fieldLabel
:
gettext
(
'
Enable
'
)
xtype
:
'
pvecheckbox
'
,
name
:
'
enable
'
,
checked
:
true
,
uncheckedValue
:
0
,
fieldLabel
:
gettext
(
'
Enable
'
)
},
{
xtype
:
me
.
create
?
'
textfield
'
:
'
displayfield
'
,
name
:
'
iscsiprovider
'
,
height
:
22
,
// hack: set same height as text fields
value
:
'
Comstar
'
,
fieldLabel
:
gettext
(
'
iSCSI Provider
'
),
allowBlank
:
false
xtype
:
me
.
create
?
'
textfield
'
:
'
displayfield
'
,
name
:
'
iscsiprovider
'
,
height
:
22
,
// hack: set same height as text fields
value
:
'
Comstar
'
,
fieldLabel
:
gettext
(
'
iSCSI Provider
'
),
allowBlank
:
false
}
];
...
...
@@ -89,7 +87,7 @@ Ext.define('PVE.storage.ZFSInputPanel', {
xtype
:
'
PVE.form.NodeSelector
'
,
name
:
'
nodes
'
,
fieldLabel
:
gettext
(
'
Nodes
'
),
emptyText
:
gettext
(
'
All
'
)
+
'
(
'
+
emptyText
:
gettext
(
'
All
'
)
+
'
(
'
+
gettext
(
'
No restrictions
'
)
+
'
)
'
,
multiSelect
:
true
,
autoSelect
:
false
...
...
@@ -102,10 +100,10 @@ Ext.define('PVE.storage.ZFSInputPanel', {
Ext
.
define
(
'
PVE.storage.ZFSEdit
'
,
{
extend
:
'
PVE.window.Edit
'
,
initComponent
:
function
()
{
var
me
=
this
;
me
.
create
=
!
me
.
storageId
;
if
(
me
.
create
)
{
...
...
@@ -126,7 +124,7 @@ Ext.define('PVE.storage.ZFSEdit', {
isAdd
:
true
,
items
:
[
ipanel
]
});
me
.
callParent
();
if
(
!
me
.
create
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment