Commit 7d35f523 authored by Dietmar Maurer's avatar Dietmar Maurer

make lint happy

parent 324c2615
...@@ -2,11 +2,10 @@ Ext.define('PVE.CephCreatePool', { ...@@ -2,11 +2,10 @@ Ext.define('PVE.CephCreatePool', {
extend: 'PVE.window.Edit', extend: 'PVE.window.Edit',
alias: ['widget.pveCephCreatePool'], alias: ['widget.pveCephCreatePool'],
create: true,
subject: 'Ceph Pool', subject: 'Ceph Pool',
initComponent : function() { initComponent : function() {
/*jslint confusion: true */
var me = this; var me = this;
if (!me.nodename) { if (!me.nodename) {
...@@ -14,6 +13,7 @@ Ext.define('PVE.CephCreatePool', { ...@@ -14,6 +13,7 @@ Ext.define('PVE.CephCreatePool', {
} }
Ext.applyIf(me, { Ext.applyIf(me, {
create: true,
url: "/nodes/" + me.nodename + "/ceph/pools", url: "/nodes/" + me.nodename + "/ceph/pools",
method: 'POST', method: 'POST',
items: [ items: [
...@@ -50,7 +50,7 @@ Ext.define('PVE.CephCreatePool', { ...@@ -50,7 +50,7 @@ Ext.define('PVE.CephCreatePool', {
Ext.define('PVE.node.CephPoolList', { Ext.define('PVE.node.CephPoolList', {
extend: 'Ext.grid.GridPanel', extend: 'Ext.grid.GridPanel',
alias: 'widget.pveNodeCephPoolList', alias: ['widget.pveNodeCephPoolList'],
initComponent: function() { initComponent: function() {
var me = this; var me = this;
...@@ -176,9 +176,10 @@ Ext.define('PVE.node.CephPoolList', { ...@@ -176,9 +176,10 @@ Ext.define('PVE.node.CephPoolList', {
Ext.define('PVE.node.CephOsdTree', { Ext.define('PVE.node.CephOsdTree', {
extend: 'Ext.tree.Panel', extend: 'Ext.tree.Panel',
alias: 'widget.pveNodeCephOsdTree', alias: ['widget.pveNodeCephOsdTree'],
initComponent: function() { initComponent: function() {
/*jslint confusion: true */
var me = this; var me = this;
var nodename = me.pveSelNode.data.node; var nodename = me.pveSelNode.data.node;
...@@ -202,7 +203,7 @@ Ext.define('PVE.node.CephOsdTree', { ...@@ -202,7 +203,7 @@ Ext.define('PVE.node.CephOsdTree', {
Ext.Msg.alert(gettext('Error'), response.htmlStatus); Ext.Msg.alert(gettext('Error'), response.htmlStatus);
} }
}); });
} };
var start_btn = new Ext.Button({ var start_btn = new Ext.Button({
text: gettext('Start'), text: gettext('Start'),
...@@ -339,10 +340,11 @@ Ext.define('PVE.node.CephOsdTree', { ...@@ -339,10 +340,11 @@ Ext.define('PVE.node.CephOsdTree', {
Ext.define('PVE.node.CephDiskList', { Ext.define('PVE.node.CephDiskList', {
extend: 'Ext.grid.GridPanel', extend: 'Ext.grid.GridPanel',
alias: 'widget.pveNodeCephDiskList', alias: ['widget.pveNodeCephDiskList'],
initComponent: function() { initComponent: function() {
/*jslint confusion: true */
var me = this; var me = this;
var nodename = me.pveSelNode.data.node; var nodename = me.pveSelNode.data.node;
...@@ -458,8 +460,6 @@ Ext.define('PVE.CephCreateMon', { ...@@ -458,8 +460,6 @@ Ext.define('PVE.CephCreateMon', {
extend: 'PVE.window.Edit', extend: 'PVE.window.Edit',
alias: ['widget.pveCephCreateMon'], alias: ['widget.pveCephCreateMon'],
create: true,
subject: 'Ceph Monitor', subject: 'Ceph Monitor',
setNode: function(nodename) { setNode: function(nodename) {
...@@ -470,6 +470,7 @@ Ext.define('PVE.CephCreateMon', { ...@@ -470,6 +470,7 @@ Ext.define('PVE.CephCreateMon', {
}, },
initComponent : function() { initComponent : function() {
/*jslint confusion: true */
var me = this; var me = this;
if (!me.nodename) { if (!me.nodename) {
...@@ -479,6 +480,7 @@ Ext.define('PVE.CephCreateMon', { ...@@ -479,6 +480,7 @@ Ext.define('PVE.CephCreateMon', {
me.setNode(me.nodename); me.setNode(me.nodename);
Ext.applyIf(me, { Ext.applyIf(me, {
create: true,
method: 'POST', method: 'POST',
items: [ items: [
{ {
...@@ -502,8 +504,7 @@ Ext.define('PVE.CephCreateMon', { ...@@ -502,8 +504,7 @@ Ext.define('PVE.CephCreateMon', {
Ext.define('PVE.node.CephMonList', { Ext.define('PVE.node.CephMonList', {
extend: 'Ext.grid.GridPanel', extend: 'Ext.grid.GridPanel',
alias: 'widget.pveNodeCephMonList', alias: ['widget.pveNodeCephMonList'],
initComponent: function() { initComponent: function() {
var me = this; var me = this;
...@@ -614,7 +615,7 @@ Ext.define('PVE.node.CephMonList', { ...@@ -614,7 +615,7 @@ Ext.define('PVE.node.CephMonList', {
width: 100, width: 100,
sortable: true, sortable: true,
renderer: function(v) { renderer: function(v) {
return v ? v : 'unknown'; return v || 'unknown';
}, },
dataIndex: 'host' dataIndex: 'host'
}, },
...@@ -652,7 +653,7 @@ Ext.define('PVE.node.CephMonList', { ...@@ -652,7 +653,7 @@ Ext.define('PVE.node.CephMonList', {
Ext.define('PVE.node.CephConfig', { Ext.define('PVE.node.CephConfig', {
extend: 'Ext.panel.Panel', extend: 'Ext.panel.Panel',
alias: 'widget.pveNodeCephConfig', alias: ['widget.pveNodeCephConfig'],
load: function() { load: function() {
var me = this; var me = this;
...@@ -698,7 +699,7 @@ Ext.define('PVE.node.CephConfig', { ...@@ -698,7 +699,7 @@ Ext.define('PVE.node.CephConfig', {
Ext.define('PVE.node.CephCrushMap', { Ext.define('PVE.node.CephCrushMap', {
extend: 'Ext.panel.Panel', extend: 'Ext.panel.Panel',
alias: 'widget.pveNodeCephCrushMap', alias: ['widget.pveNodeCephCrushMap'],
load: function() { load: function() {
var me = this; var me = this;
...@@ -744,9 +745,10 @@ Ext.define('PVE.node.CephCrushMap', { ...@@ -744,9 +745,10 @@ Ext.define('PVE.node.CephCrushMap', {
Ext.define('PVE.node.CephStatus', { Ext.define('PVE.node.CephStatus', {
extend: 'PVE.grid.ObjectGrid', extend: 'PVE.grid.ObjectGrid',
alias: 'widget.pveNodeCephStatus', alias: ['widget.pveNodeCephStatus'],
initComponent: function() { initComponent: function() {
/*jslint confusion: true */
var me = this; var me = this;
var nodename = me.pveSelNode.data.node; var nodename = me.pveSelNode.data.node;
...@@ -865,7 +867,7 @@ Ext.define('PVE.node.CephStatus', { ...@@ -865,7 +867,7 @@ Ext.define('PVE.node.CephStatus', {
me.callParent(); me.callParent();
me.on('show', me.rstore.startUpdate); me.on('show', me.rstore.startUpdate);
me.on('hide', me.rstore.stopUpdate); me.on('hide', me.rstore.stopUpdate);
me.on('destroy', me.rstore.stopUpdate); me.on('destroy', me.rstore.stopUpdate);
} }
...@@ -873,9 +875,10 @@ Ext.define('PVE.node.CephStatus', { ...@@ -873,9 +875,10 @@ Ext.define('PVE.node.CephStatus', {
Ext.define('PVE.node.Ceph', { Ext.define('PVE.node.Ceph', {
extend: 'Ext.tab.Panel', extend: 'Ext.tab.Panel',
alias: 'widget.pveNodeCeph', alias: ['widget.pveNodeCeph'],
getHState: function(itemId) { getHState: function(itemId) {
/*jslint confusion: true */
var me = this; var me = this;
if (!itemId) { if (!itemId) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment