Skip to content

Commit f49a47e

Browse files
updated some texts
1 parent 25eb319 commit f49a47e

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

src/app/app.component.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,15 @@
99
<div class="body bg-color">
1010
<div class="left-part" [style.width.px]="dragObject.currentWidth">
1111
<div class="side-header mat-elevation-z1">
12-
<button mat-icon-button matTooltip="Refresh Redis Instance" (click)="onRefresh()">
12+
<button mat-icon-button matTooltip="Refresh" (click)="onRefresh()">
1313
<i class="material-icons">refresh</i>
1414
</button>
1515

1616
<button mat-icon-button matTooltip="Add Redis Connection" (click)="onAddServer()" onclick="this.blur()" >
1717
<i class="material-icons">add_circle</i>
1818
</button>
1919
<button mat-icon-button
20-
matTooltip="Remove This Redis Server"
20+
matTooltip="Remove Redis Connection"
2121
(click)="onDeleteServer()"onclick="this.blur()" >
2222

2323
<i class="material-icons delete-btn">delete</i>

src/app/app.component.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ export class AppComponent implements OnInit {
106106
if (result) {
107107
this.findInstanceByName(result.name).then(instance => {
108108
if (instance) {
109-
this.util.showMessage('The instance name already exists.');
109+
this.util.showMessage('The connection name already exists.');
110110
return;
111111
} else {
112112
const newInstance = {id: uuid(), serverModel: result};
@@ -120,13 +120,13 @@ 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 a Redis connection first.');
124124
return;
125125
}
126126
this.dialogService.open(ConfirmDialogComponent, {
127127
width: '250px', data: {
128128
title: 'Delete Confirmation',
129-
message: `Are you sure you want to delete this server?`
129+
message: `Are you sure you want to delete this Redis connection?`
130130
}
131131
}).afterClosed().subscribe(ret => {
132132
if (ret) {
@@ -145,7 +145,7 @@ export class AppComponent implements OnInit {
145145
this.instances$.subscribe(instances => {
146146
const ins = instances.find(i => i.selected === true);
147147
if (!ins) {
148-
this.util.showMessage('You need to select a Redis instance first.');
148+
this.util.showMessage('You need to select a Redis connection first.');
149149
return;
150150
}
151151
this._store.dispatch( new ReqRedisConnect({
@@ -248,7 +248,7 @@ export class AppComponent implements OnInit {
248248
this._store.dispatch(new SelectRedis({id}));
249249
this.findInstance(id).then(instance => {
250250
if (!instance['id']) {
251-
this.util.showMessage(`The Redis instance with id: ${id} cannot be found.`);
251+
this.util.showMessage(`The Redis connection with id: ${id} cannot be found.`);
252252
return;
253253
}
254254
this.currentInstance = instance;
@@ -417,7 +417,7 @@ export class AppComponent implements OnInit {
417417
this.dialogService.open(ImportDataDialogComponent, {
418418
width: '560px', data: {
419419
title: 'Delete Confirmation',
420-
message: `Are you sure you want to delete this server?`,
420+
message: `Are you sure you want to delete this Redis connection?`,
421421
opType: 'import',
422422
currentInstance: instance,
423423
instances,
@@ -435,7 +435,7 @@ export class AppComponent implements OnInit {
435435
this.dialogService.open(ImportDataDialogComponent, {
436436
width: '560px', data: {
437437
title: 'Delete Confirmation',
438-
message: `Are you sure you want to delete this server?`,
438+
message: `Are you sure you want to delete this Redis connection?`,
439439
opType: 'export',
440440
currentInstance: instance,
441441
instances,

0 commit comments

Comments
 (0)