Improve wording.

pull/19/head
Dave Page 2019-01-03 15:24:47 +00:00
parent 7d765fea04
commit 598f69b63d
3 changed files with 8 additions and 8 deletions

View File

@ -72,7 +72,7 @@ class ExecuteQuery {
self.removeGridViewMarker();
if (ExecuteQuery.isSqlCorrect(httpMessageData)) {
self.loadingScreen.setMessage('Waiting for the query execution to complete...');
self.loadingScreen.setMessage('Waiting for the query to complete...');
self.updateSqlEditorStateWithInformationFromServer(httpMessageData.data);
@ -169,7 +169,7 @@ class ExecuteQuery {
}
initializeExecutionOnSqlEditor(sqlStatement) {
this.loadingScreen.show('Initializing query execution...');
this.loadingScreen.show('Running query...');
$('#btn-flash').prop('disabled', true);

View File

@ -2150,14 +2150,14 @@ define('tools.querytool', [
self.trigger(
'pgadmin-sqleditor:loading-icon:show',
gettext('Initializing query execution.')
gettext('Running query...')
);
$('#btn-flash').prop('disabled', true);
self.trigger(
'pgadmin-sqleditor:loading-icon:message',
gettext('Waiting for the query execution to complete...')
gettext('Waiting for the query to complete...')
);
if (arguments.length > 0 &&

View File

@ -1055,11 +1055,11 @@ describe('ExecuteQuery', () => {
jasmine.clock().uninstall();
});
it('should update loading text to "Initializing query execution"', () => {
it('should update loading text to "Running query"', () => {
expect(sqlEditorMock.trigger)
.toHaveBeenCalledWith(
'pgadmin-sqleditor:loading-icon:show',
'Initializing query execution...'
'Running query...'
);
});
@ -1104,11 +1104,11 @@ describe('ExecuteQuery', () => {
executeQuery.execute('some sql query', '', true);
});
it('should changes the loading message to "Waiting for the query execution to complete"', (done) => {
it('should changes the loading message to "Waiting for the query to complete"', (done) => {
setTimeout(() => {
expect(sqlEditorMock.trigger).toHaveBeenCalledWith(
'pgadmin-sqleditor:loading-icon:message',
'Waiting for the query execution to complete...'
'Waiting for the query to complete...'
);
done();
}, 0);