pgadmin4/web/pgadmin/dashboard/static/js/ActiveQuery.ui.js
2024-01-01 14:13:48 +05:30

64 lines
1.4 KiB
JavaScript

/////////////////////////////////////////////////////////////
//
// pgAdmin 4 - PostgreSQL Tools
//
// Copyright (C) 2013 - 2024, The pgAdmin Development Team
// This software is released under the PostgreSQL Licence
//
//////////////////////////////////////////////////////////////
import gettext from 'sources/gettext';
import BaseUISchema from 'sources/SchemaView/base_schema.ui';
export default class ActiveQuery extends BaseUISchema {
constructor(initValues) {
super({
...initValues,
});
}
get baseFields() {
return [
{
id: 'backend_type',
label: gettext('Backend type'),
type: 'text',
editable: true,
noEmpty: false,
readonly: true,
mode: ['properties'],
group: gettext('Details'),
},
{
id: 'query_start',
label: gettext('Query started at'),
type: 'text',
editable: false,
readonly: true,
group: gettext('Details'),
},
{
id: 'state_change',
label: gettext('Last state changed at'),
type: 'text',
editable: false,
readonly: true,
group: gettext('Details'),
},
{
id: 'query',
label: gettext('SQL'),
cell: 'string',
editable: false,
readonly: true,
type: 'sql',
group: gettext('Details'),
},
];
}
}