Skip to content

Commit 27a691c

Browse files
authored
Update manager-dashboard.component.ts
1 parent 58020fa commit 27a691c

1 file changed

Lines changed: 16 additions & 16 deletions

File tree

src/app/manager-dashboard/manager-dashboard.component.ts

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -248,24 +248,24 @@ export class ManagerDashboardComponent implements OnInit, OnDestroy {
248248
});
249249
}
250250
}
251-
251+
252252
confirmResetPin() {
253-
const confirmationMessage = $localize`:@@managerDashboard.resetPinConfirm:Resetting the PIN may temporarily disrupt connections for devices using this server until they reconnect. Do you want to continue?`;
254-
this.resetPinDialog = this.dialog.open(DialogsPromptComponent, {
255-
data: {
256-
mainParagraph: confirmationMessage,
257-
okClick: {
258-
request: this.resetPin(),
259-
onNext: () => {
260-
this.resetPinDialog.close();
261-
this.getSatellitePin();
262-
this.planetMessageService.showMessage($localize`Pin reset successfully`);
263-
},
264-
onError: () => this.planetMessageService.showAlert($localize`Error to reset pin`)
253+
this.resetPinDialog = this.dialog.open(DialogsPromptComponent, {
254+
data: {
255+
type: 'pin',
256+
changeType: 'reset',
257+
okClick: {
258+
request: this.resetPin(),
259+
onNext: () => {
260+
this.resetPinDialog.close();
261+
this.getSatellitePin();
262+
this.planetMessageService.showMessage($localize`PIN reset successfully`);
263+
},
264+
onError: () => this.planetMessageService.showAlert($localize`There was an error resetting the PIN`)
265+
}
265266
}
266-
}
267-
});
268-
}
267+
});
268+
}
269269

270270
resetPin() {
271271
const userName = 'org.couchdb.user:satellite';

0 commit comments

Comments
 (0)