mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Remove Alertify from pgAdmin completely. Fixes #7619
This commit is contained in:
@@ -67,7 +67,7 @@ export default function CloudWizard({ nodeInfo, nodeData, onClose}) {
|
||||
|
||||
const eventBus = React.useRef(new EventBus());
|
||||
|
||||
var steps = [gettext('Cloud Provider'), gettext('Credentials'),
|
||||
let steps = [gettext('Cloud Provider'), gettext('Credentials'),
|
||||
gettext('Instance Specification'), gettext('Database Details'), gettext('Review')];
|
||||
const [currentStep, setCurrentStep] = React.useState('');
|
||||
const [selectionVal, setCloudSelection] = React.useState('');
|
||||
@@ -121,7 +121,7 @@ export default function CloudWizard({ nodeInfo, nodeData, onClose}) {
|
||||
};
|
||||
|
||||
const onSave = () => {
|
||||
var _url = url_for('cloud.deploy_on_cloud'),
|
||||
let _url = url_for('cloud.deploy_on_cloud'),
|
||||
post_data = {};
|
||||
|
||||
if (cloudProvider == 'rds') {
|
||||
@@ -227,7 +227,7 @@ export default function CloudWizard({ nodeInfo, nodeData, onClose}) {
|
||||
return new Promise((resolve, reject)=>{
|
||||
if(activeStep == 1 && cloudProvider == 'rds') {
|
||||
setErrMsg([MESSAGE_TYPE.INFO, gettext('Validating credentials...')]);
|
||||
var _url = url_for('rds.verify_credentials');
|
||||
let _url = url_for('rds.verify_credentials');
|
||||
const post_data = {
|
||||
cloud: selectionVal,
|
||||
secret: cloudDBCred,
|
||||
@@ -283,7 +283,7 @@ export default function CloudWizard({ nodeInfo, nodeData, onClose}) {
|
||||
};
|
||||
|
||||
const authenticateBigAnimal = () => {
|
||||
var loading_icon_url = url_for(
|
||||
let loading_icon_url = url_for(
|
||||
'static', { 'filename': 'img/loading.gif'}
|
||||
);
|
||||
|
||||
|
||||
@@ -76,7 +76,7 @@ export default function Dependencies({ nodeData, item, node, ...props }) {
|
||||
const [tableData, setTableData] = React.useState([]);
|
||||
const [loaderText, setLoaderText] = React.useState('');
|
||||
const [msg, setMsg] = React.useState('');
|
||||
var columns = [
|
||||
let columns = [
|
||||
{
|
||||
Header: 'Type',
|
||||
accessor: 'type',
|
||||
|
||||
@@ -77,7 +77,7 @@ export default function Dependents({ nodeData, item, node, ...props }) {
|
||||
const [loaderText, setLoaderText] = React.useState('');
|
||||
const [msg, setMsg] = React.useState('');
|
||||
|
||||
var columns = [
|
||||
let columns = [
|
||||
{
|
||||
Header: 'Type',
|
||||
accessor: 'type',
|
||||
|
||||
@@ -198,7 +198,7 @@ export function CollectionNodeView({
|
||||
const api = getApiInstance();
|
||||
|
||||
let tableColumns = [];
|
||||
var column = {};
|
||||
let column = {};
|
||||
setLoaderText('Loading...');
|
||||
|
||||
if (itemNodeData._type.indexOf('coll-') > -1 && !_.isUndefined(nodeObj.getSchema)) {
|
||||
|
||||
@@ -35,7 +35,7 @@ export default function SQL({ nodeData, node, did, ...props }) {
|
||||
const [msg, setMsg] = React.useState('');
|
||||
|
||||
useEffect(() => {
|
||||
var sql = '-- ' + gettext('Please select an object in the tree view.');
|
||||
let sql = '-- ' + gettext('Please select an object in the tree view.');
|
||||
if (node) {
|
||||
let url = generateNodeUrl.call(
|
||||
node,
|
||||
|
||||
Reference in New Issue
Block a user