Skip to content

Commit 5233db4

Browse files
authored
Merge pull request topcoderinc#423 from kinfkong/issue-292
Issue topcoderinc#292
2 parents 221fbb5 + 98d038d commit 5233db4

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

src/app/app.component.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ export class AppComponent implements OnInit {
120120

121121
onDeleteServer() {
122122
if (!this.currentInstance) {
123-
this.util.showMessage('You need to select Redis instance first');
123+
this.util.showMessage('You need to select Redis instance first.');
124124
return;
125125
}
126126
this.dialogService.open(ConfirmDialogComponent, {

src/app/components/add-server-dialog/add-server-dialog.component.ts

+5-5
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,12 @@ export class AddServerDialogComponent implements OnInit {
3131

3232
this.data.name = this.util.getValue(this.data.name);
3333
if (!this.data.name) {
34-
return this.util.showMessage('The name cannot be empty');
34+
return this.util.showMessage('The name cannot be empty.');
3535
}
3636

3737
this.data.ip = this.util.getValue(this.data.ip);
3838
if (!this.data.ip) {
39-
return this.util.showMessage('The host cannot be empty');
39+
return this.util.showMessage('The host cannot be empty.');
4040
}
4141

4242
this.data.port = this.util.getValue(this.data.port);
@@ -48,19 +48,19 @@ export class AddServerDialogComponent implements OnInit {
4848

4949
this.data.port = parseInt(this.data.port + '', 10);
5050
if (isNaN(this.data.port) || this.data.port < 1 || this.data.port > 65535) {
51-
return this.util.showMessage('The port must be in 1 - 65535');
51+
return this.util.showMessage('The port must be in 1 - 65535.');
5252
} else {
5353
this.data.port = portNumber;
5454
}
5555

5656
this.data.db = this.util.getValue(this.data.db + '');
5757
if (!this.data.db) {
58-
return this.util.showMessage('The database index cannot be empty');
58+
return this.util.showMessage('The database index cannot be empty.');
5959
}
6060

6161
this.data.db = parseInt(this.data.db + '', 10);
6262
if (isNaN(this.data.db) || this.data.db < 0 || this.data.db > 16) {
63-
return this.util.showMessage('The database index must be in 0 - 16');
63+
return this.util.showMessage('The database index must be in 0 - 16.');
6464
}
6565

6666

src/app/components/data-viewer/data-viewer.component.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,7 @@ export class DataViewerComponent implements OnInit, OnChanges {
293293
this.pageData.item.value = this.pageData.item.value.trim();
294294
this.redisService.call(this.pageData.id,
295295
[['set', this.pageData.item.key, this.pageData.item.value.trim()]]).subscribe(() => {
296-
this.util.showMessage('Updated successfully');
296+
this.util.showMessage('Updated successfully.');
297297
});
298298
}
299299
}
@@ -373,7 +373,7 @@ export class DataViewerComponent implements OnInit, OnChanges {
373373
});
374374

375375
if (keys.length <= 0) {
376-
return this.util.showMessage('You need to select a row first');
376+
return this.util.showMessage('You need to select a row first.');
377377
}
378378

379379
if (this.pageData.item.type === 'hash') {

0 commit comments

Comments
 (0)