mirror of
https://git.proxmox.com/git/pve-manager
synced 2025-07-23 20:43:16 +00:00
ui: ceph warnings: code cleanups
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
459b6c3136
commit
feb192207a
@ -149,14 +149,18 @@ Ext.define('PVE.node.CephStatus', {
|
||||
iconCls: 'x-fa fa-files-o',
|
||||
tooltip: gettext('Copy summary'),
|
||||
handler: function(grid, rowindex, colindex, item, e, record) {
|
||||
navigator.clipboard.writeText(record.data.summary);
|
||||
navigator.clipboard
|
||||
.writeText(record.data.summary)
|
||||
.catch(err => Ext.Msg.alert(gettext('Error'), err));
|
||||
},
|
||||
},
|
||||
{
|
||||
iconCls: 'x-fa fa-clipboard',
|
||||
tooltip: gettext('Copy details'),
|
||||
handler: function(grid, rowindex, colindex, item, e, record) {
|
||||
navigator.clipboard.writeText(record.data.detail);
|
||||
navigator.clipboard
|
||||
.writeText(record.data.detail)
|
||||
.catch(err => Ext.Msg.alert(gettext('Error'), err));
|
||||
},
|
||||
},
|
||||
],
|
||||
@ -164,10 +168,9 @@ Ext.define('PVE.node.CephStatus', {
|
||||
],
|
||||
listeners: {
|
||||
itemdblclick: function(view, record, row, rowIdx, e) {
|
||||
// inspired by RowExpander.js
|
||||
|
||||
let rowNode = view.getNode(rowIdx); let
|
||||
normalRow = Ext.fly(rowNode);
|
||||
// inspired by Ext.grid.plugin.RowExpander, but for double click
|
||||
let rowNode = view.getNode(rowIdx);
|
||||
let normalRow = Ext.fly(rowNode);
|
||||
|
||||
let collapsedCls = view.rowBodyFeature.rowCollapsedCls;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user