diff --git a/client/resources/original_messages.json b/client/resources/original_messages.json
index 014bedab41..421edccf0a 100644
--- a/client/resources/original_messages.json
+++ b/client/resources/original_messages.json
@@ -607,4 +607,4 @@
"description": "Affirmative answer to a form question.",
"message": "Yes"
}
-}
\ No newline at end of file
+}
diff --git a/client/src/www/TODO.spec.ts b/client/src/www/TODO.spec.ts
index 79c10169fc..70654b393b 100644
--- a/client/src/www/TODO.spec.ts
+++ b/client/src/www/TODO.spec.ts
@@ -36,7 +36,6 @@ import * as errorReporter from './shared/error_reporter';
import * as addServerView from './ui_components/add-server-view';
import * as appRoot from './ui_components/app-root.js';
import * as privacyView from './ui_components/privacy-view';
-import * as serverRenameDialog from './ui_components/server-rename-dialog';
import * as userCommsDialog from './ui_components/user-comms-dialog';
import * as aboutView from './views/about_view';
import * as languageView from './views/language_view';
@@ -54,7 +53,6 @@ describe('TODOs', () => {
expect(languageView).toBeDefined();
expect(platform).toBeDefined();
expect(privacyView).toBeDefined();
- expect(serverRenameDialog).toBeDefined();
expect(server).toBeDefined();
expect(updater).toBeDefined();
expect(urlInterceptor).toBeDefined();
diff --git a/client/src/www/app/app.ts b/client/src/www/app/app.ts
index c39f1a25dd..2c781924f9 100644
--- a/client/src/www/app/app.ts
+++ b/client/src/www/app/app.ts
@@ -165,10 +165,6 @@ export class App {
'AutoConnectDialogDismissed',
this.autoConnectDialogDismissed.bind(this)
);
- this.rootEl.addEventListener(
- 'ShowServerRename',
- this.rootEl.showServerRename.bind(this.rootEl)
- );
this.rootEl.addEventListener(
'PrivacyTermsAcked',
this.ackPrivacyTerms.bind(this)
diff --git a/client/src/www/messages/en.json b/client/src/www/messages/en.json
index 313dc47094..f3e657f33d 100644
--- a/client/src/www/messages/en.json
+++ b/client/src/www/messages/en.json
@@ -114,4 +114,4 @@
"update-downloaded": "An updated version of Outline has been downloaded. It will be installed when you restart Outline.",
"version": "Version {appVersion}",
"yes": "Yes"
-}
\ No newline at end of file
+}
diff --git a/client/src/www/ui_components/app-root.js b/client/src/www/ui_components/app-root.js
index 992c60813d..018af55782 100644
--- a/client/src/www/ui_components/app-root.js
+++ b/client/src/www/ui_components/app-root.js
@@ -53,7 +53,6 @@ import '../views/licenses_view';
// eslint-disable-next-line n/no-missing-import
import '../views/servers_view';
-import './server-rename-dialog.js';
import './user-comms-dialog.js';
import {AppLocalizeBehavior} from '@polymer/app-localize-behavior/app-localize-behavior.js';
@@ -546,12 +545,6 @@ export class AppRoot extends mixinBehaviors(
https://github.com/PolymerElements/paper-dialog/issues/152 and
https://github.com/PolymerElements/app-layout/issues/295
Once those are fixed we can consider moving this into server-card.html -->
-
-
- mwc-textfield {
- margin-top: 0;
- }
-
-
- [[localize('server-rename')]]
-
-
-
- `,
-
- is: 'server-rename-dialog',
-
- properties: {
- // Need to declare localize function passed in from parent, or else
- // localize() calls within the template won't be updated.
- localize: Function,
- rootPath: String,
- __serverName: String,
- __serverId: String,
- },
-
- open: function (serverName, serverId) {
- // Store the initial serverName so we can know if it changed, and
- // store the serverId so we can emit the rename request event.
- this.__serverName = serverName;
- this.__serverId = serverId;
- this.$.serverNameInput.value = serverName;
- this.$.renameDialog.open();
- // Focus on serverNameInput, only after the dialog has been displayed.
- afterNextRender(this, () => {
- this.$.serverNameInput.focus();
- });
- },
-
- _saveRename: function () {
- const newName = this.$.serverNameInput.value;
- if (newName !== this.__serverName) {
- this.fire('RenameRequested', {serverId: this.__serverId, newName: newName});
- }
- },
-});
diff --git a/client/src/www/views/servers_view/server_list_item/index.ts b/client/src/www/views/servers_view/server_list_item/index.ts
index 8d70bf6580..e439b9a726 100644
--- a/client/src/www/views/servers_view/server_list_item/index.ts
+++ b/client/src/www/views/servers_view/server_list_item/index.ts
@@ -22,7 +22,7 @@ export enum ServerListItemEvent {
CONNECT = 'ConnectPressed',
DISCONNECT = 'DisconnectPressed',
FORGET = 'ForgetPressed',
- RENAME = 'ShowServerRename',
+ RENAME = 'RenameRequested',
}
/**
@@ -46,4 +46,5 @@ export interface ServerListItemElement {
localize: Localizer;
menu: Ref