Skip to content

Commit

Permalink
Don't show dialog on device rename (#1594)
Browse files Browse the repository at this point in the history
This removes the prompt when the user decides to rename a device. The
prompt was simply confusing.
  • Loading branch information
nmattia authored May 12, 2023
1 parent 927809c commit c1c1074
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 7 deletions.
5 changes: 0 additions & 5 deletions src/frontend/src/flows/manage/deviceSettings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,6 @@ export const renameDevice = async ({
device: DeviceData;
reload: () => void;
}) => {
const confirmed = confirm("Choose a nickname for this passkey.");
if (!confirmed) {
return;
}

const alias = await promptDeviceAlias({
title: "Passkey Nickname",
message: "Choose a nickname for this Passkey",
Expand Down
2 changes: 0 additions & 2 deletions src/frontend/src/test-e2e/views.ts
Original file line number Diff line number Diff line change
Expand Up @@ -239,8 +239,6 @@ export class MainView extends View {
await this.browser
.$(`button[data-device="${deviceName}"][data-action='rename']`)
.click();
await this.browser.waitUntil(this.browser.isAlertOpen);
await this.browser.acceptAlert();

const renameView = new RenameView(this.browser);
await renameView.waitForDisplay();
Expand Down

0 comments on commit c1c1074

Please sign in to comment.