mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
1) Added special handling for the extension to resolve the dependency.
2) Added 'is_sys_obj' to the ignore list of Schema Diff. 3) Font awesome v5 fixes.
This commit is contained in:
parent
63df19ee1c
commit
8f61944386
@ -247,7 +247,7 @@ define([
|
|||||||
type: 'delete',
|
type: 'delete',
|
||||||
tooltip: gettext('Delete/Drop'),
|
tooltip: gettext('Delete/Drop'),
|
||||||
extraClasses: ['btn-primary-icon m-1', 'delete_multiple'],
|
extraClasses: ['btn-primary-icon m-1', 'delete_multiple'],
|
||||||
icon: 'fa fa-lg fa-trash-alt',
|
icon: 'fa fa-trash-alt',
|
||||||
disabled: (_.isFunction(that.canDrop)) ? !(that.canDrop.apply(self, [data, item])) : (!that.canDrop),
|
disabled: (_.isFunction(that.canDrop)) ? !(that.canDrop.apply(self, [data, item])) : (!that.canDrop),
|
||||||
register: function(btn) {
|
register: function(btn) {
|
||||||
btn.on('click',() => {
|
btn.on('click',() => {
|
||||||
|
@ -1246,7 +1246,7 @@ define('pgadmin.browser.node', [
|
|||||||
type: 'help',
|
type: 'help',
|
||||||
tooltip: gettext('SQL help for this object type.'),
|
tooltip: gettext('SQL help for this object type.'),
|
||||||
extraClasses: ['btn-primary-icon', 'btn-primary-icon', 'm-1'],
|
extraClasses: ['btn-primary-icon', 'btn-primary-icon', 'm-1'],
|
||||||
icon: 'fa fa-lg fa-info',
|
icon: 'fa fa-info',
|
||||||
disabled: (that.sqlAlterHelp == '' && that.sqlCreateHelp == '') ? true : false,
|
disabled: (that.sqlAlterHelp == '' && that.sqlCreateHelp == '') ? true : false,
|
||||||
register: function(btn) {
|
register: function(btn) {
|
||||||
btn.on('click',() => {
|
btn.on('click',() => {
|
||||||
@ -1499,7 +1499,7 @@ define('pgadmin.browser.node', [
|
|||||||
type: 'help',
|
type: 'help',
|
||||||
tooltip: gettext('SQL help for this object type.'),
|
tooltip: gettext('SQL help for this object type.'),
|
||||||
extraClasses: ['btn-primary-icon', 'pull-left', 'mx-1'],
|
extraClasses: ['btn-primary-icon', 'pull-left', 'mx-1'],
|
||||||
icon: 'fa fa-lg fa-info',
|
icon: 'fa fa-info',
|
||||||
disabled: (that.sqlAlterHelp == '' && that.sqlCreateHelp == '') ? true : false,
|
disabled: (that.sqlAlterHelp == '' && that.sqlCreateHelp == '') ? true : false,
|
||||||
register: function(btn) {
|
register: function(btn) {
|
||||||
btn.on('click',() => {
|
btn.on('click',() => {
|
||||||
@ -1511,7 +1511,7 @@ define('pgadmin.browser.node', [
|
|||||||
type: 'help',
|
type: 'help',
|
||||||
tooltip: gettext('Help for this dialog.'),
|
tooltip: gettext('Help for this dialog.'),
|
||||||
extraClasses: ['btn-primary-icon', 'pull-left', 'mx-1'],
|
extraClasses: ['btn-primary-icon', 'pull-left', 'mx-1'],
|
||||||
icon: 'fa fa-lg fa-question',
|
icon: 'fa fa-question',
|
||||||
disabled: (that.dialogHelp == '') ? true : false,
|
disabled: (that.dialogHelp == '') ? true : false,
|
||||||
register: function(btn) {
|
register: function(btn) {
|
||||||
btn.on('click',() => {
|
btn.on('click',() => {
|
||||||
|
@ -30,7 +30,7 @@ let _defaultToolBarButtons = [
|
|||||||
{
|
{
|
||||||
label: gettext('View Data'),
|
label: gettext('View Data'),
|
||||||
ariaLabel: gettext('View Data'),
|
ariaLabel: gettext('View Data'),
|
||||||
btnClass: 'fa fa-table',
|
btnClass: 'pg-font-icon sql-icon-lg icon-view-data',
|
||||||
text: '',
|
text: '',
|
||||||
toggled: false,
|
toggled: false,
|
||||||
toggleClass: '',
|
toggleClass: '',
|
||||||
|
@ -36,7 +36,7 @@ define('misc.bgprocess', [
|
|||||||
success_status_tpl: _.template(`
|
success_status_tpl: _.template(`
|
||||||
<div class="d-flex px-2 py-1 bg-success-light border border-success rounded">
|
<div class="d-flex px-2 py-1 bg-success-light border border-success rounded">
|
||||||
<div class="pr-2">
|
<div class="pr-2">
|
||||||
<i class="fa fa-check fa-lg text-success pg-bg-status-icon" aria-hidden="true" role="img"></i>
|
<i class="fa fa-check text-success pg-bg-status-icon" aria-hidden="true" role="img"></i>
|
||||||
</div>
|
</div>
|
||||||
<div class="mx-auto pg-bg-status-text alert-text-body"><%-status_text%></div>
|
<div class="mx-auto pg-bg-status-text alert-text-body"><%-status_text%></div>
|
||||||
</div>`),
|
</div>`),
|
||||||
@ -309,7 +309,7 @@ define('misc.bgprocess', [
|
|||||||
<div class="py-1">${self.stime.toString()}</div>
|
<div class="py-1">${self.stime.toString()}</div>
|
||||||
<div class="d-flex py-1">
|
<div class="d-flex py-1">
|
||||||
<div class="my-auto mr-2">
|
<div class="my-auto mr-2">
|
||||||
<span class="fa fa-clock-o fa-2x" role="img"></span>
|
<span class="fa fa-clock fa-lg" role="img"></span>
|
||||||
</div>
|
</div>
|
||||||
<div class="pg-bg-etime my-auto mr-2"></div>
|
<div class="pg-bg-etime my-auto mr-2"></div>
|
||||||
<div class="ml-auto">
|
<div class="ml-auto">
|
||||||
@ -616,7 +616,7 @@ define('misc.bgprocess', [
|
|||||||
'<div class="bg-detailed-desc"></div>' +
|
'<div class="bg-detailed-desc"></div>' +
|
||||||
'<div class="bg-process-stats d-flex py-1">' +
|
'<div class="bg-process-stats d-flex py-1">' +
|
||||||
'<div class="my-auto mr-2">' +
|
'<div class="my-auto mr-2">' +
|
||||||
'<span class="fa fa-clock-o fa-2x" role="img"></span>' +
|
'<span class="fa fa-clock fa-lg" role="img"></span>' +
|
||||||
'</div>' +
|
'</div>' +
|
||||||
'<div class="pg-bg-etime my-auto mr-2">'+
|
'<div class="pg-bg-etime my-auto mr-2">'+
|
||||||
'<span>' + gettext('Start time') + ': <span class="bgprocess-start-time"></span>' +
|
'<span>' + gettext('Start time') + ': <span class="bgprocess-start-time"></span>' +
|
||||||
|
@ -2806,6 +2806,9 @@ define([
|
|||||||
options: {
|
options: {
|
||||||
format: 'YYYY-MM-DD HH:mm:ss Z',
|
format: 'YYYY-MM-DD HH:mm:ss Z',
|
||||||
icons: {
|
icons: {
|
||||||
|
time: 'fa fa-clock',
|
||||||
|
data: 'fa fa-calendar-alt',
|
||||||
|
today: 'fa fa-calendar-check',
|
||||||
clear: 'fa fa-trash',
|
clear: 'fa fa-trash',
|
||||||
},
|
},
|
||||||
buttons: {
|
buttons: {
|
||||||
|
@ -1780,6 +1780,9 @@ define([
|
|||||||
options = _.extend({
|
options = _.extend({
|
||||||
format: 'YYYY-MM-DD HH:mm:ss Z',
|
format: 'YYYY-MM-DD HH:mm:ss Z',
|
||||||
icons: {
|
icons: {
|
||||||
|
time: 'fa fa-clock',
|
||||||
|
data: 'fa fa-calendar-alt',
|
||||||
|
today: 'fa fa-calendar-check',
|
||||||
clear: 'fa fa-trash',
|
clear: 'fa fa-trash',
|
||||||
},
|
},
|
||||||
buttons: {
|
buttons: {
|
||||||
|
@ -200,7 +200,6 @@
|
|||||||
|
|
||||||
.pg-alertify-icon-button {
|
.pg-alertify-icon-button {
|
||||||
&:before {
|
&:before {
|
||||||
font-size: 1.1em !important;
|
|
||||||
line-height: 1.2;
|
line-height: 1.2;
|
||||||
font-family: $font-family-icon;
|
font-family: $font-family-icon;
|
||||||
font-weight: 900;
|
font-weight: 900;
|
||||||
|
@ -34,6 +34,10 @@
|
|||||||
display: flex;
|
display: flex;
|
||||||
border-radius: $btn-border-radius;
|
border-radius: $btn-border-radius;
|
||||||
margin: auto;
|
margin: auto;
|
||||||
|
|
||||||
|
& .pg-font-icon {
|
||||||
|
line-height: unset;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* darken % taken from bootstrap - button_variant */
|
/* darken % taken from bootstrap - button_variant */
|
||||||
@ -167,7 +171,7 @@
|
|||||||
padding: 0rem 0.75rem;
|
padding: 0rem 0.75rem;
|
||||||
|
|
||||||
&.fa, &.pg-font-icon{
|
&.fa, &.pg-font-icon{
|
||||||
padding: 0rem 0.25rem 0rem 0rem
|
padding: 0rem 0.25rem 0rem 0rem;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -45,7 +45,7 @@ export function setQueryToolDockerTitle(panel, is_query_tool, panel_title, is_fi
|
|||||||
else if (is_query_tool == 'false' || is_query_tool == false) {
|
else if (is_query_tool == 'false' || is_query_tool == false) {
|
||||||
// Edit grid titles
|
// Edit grid titles
|
||||||
panel_tooltip = gettext('View/Edit Data - ') + panel_title;
|
panel_tooltip = gettext('View/Edit Data - ') + panel_title;
|
||||||
panel_icon = 'fa fa-table';
|
panel_icon = 'pg-font-icon icon-view-data';
|
||||||
} else {
|
} else {
|
||||||
// Query tool titles
|
// Query tool titles
|
||||||
panel_tooltip = gettext('Query Tool - ') + panel_title;
|
panel_tooltip = gettext('Query Tool - ') + panel_title;
|
||||||
|
@ -19,7 +19,7 @@ from pgadmin.tools.schema_diff.directory_compare import compare_dictionaries
|
|||||||
|
|
||||||
class SchemaDiffObjectCompare:
|
class SchemaDiffObjectCompare:
|
||||||
|
|
||||||
keys_to_ignore = ['oid', 'oid-2']
|
keys_to_ignore = ['oid', 'oid-2', 'is_sys_obj']
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def get_schema(sid, did, scid):
|
def get_schema(sid, did, scid):
|
||||||
|
@ -135,6 +135,11 @@ function selectDependencies(data, isChecked) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
setDependencies = function(rowData, dependencies, isChecked) {
|
setDependencies = function(rowData, dependencies, isChecked) {
|
||||||
|
// Special handling for extension, if extension is present in the
|
||||||
|
// dependency list then iterate and select only extension node.
|
||||||
|
let extensions = dependencies.filter(item => item.type == 'extension');
|
||||||
|
if (extensions.length > 0) dependencies = extensions;
|
||||||
|
|
||||||
_.each(dependencies, function(dependency) {
|
_.each(dependencies, function(dependency) {
|
||||||
if (dependency.length == 0) return;
|
if (dependency.length == 0) return;
|
||||||
let dependencyData = [];
|
let dependencyData = [];
|
||||||
|
Loading…
Reference in New Issue
Block a user