FIX: removes legacy browsers-refresh button (#7028)

FIX: removes legacy browsers-refresh button (#7028)

diff --git a/app/assets/javascripts/admin/controllers/admin-user-index.js.es6 b/app/assets/javascripts/admin/controllers/admin-user-index.js.es6
index b71b516..78f8ef1 100644
--- a/app/assets/javascripts/admin/controllers/admin-user-index.js.es6
+++ b/app/assets/javascripts/admin/controllers/admin-user-index.js.es6
@@ -143,9 +143,6 @@ export default Ember.Controller.extend(CanCheckEmails, {
     resetBounceScore() {
       return this.get("model").resetBounceScore();
     },
-    refreshBrowsers() {
-      return this.get("model").refreshBrowsers();
-    },
     approve() {
       return this.get("model").approve();
     },
diff --git a/app/assets/javascripts/admin/models/admin-user.js.es6 b/app/assets/javascripts/admin/models/admin-user.js.es6
index b9a8fc7..7e45667 100644
--- a/app/assets/javascripts/admin/models/admin-user.js.es6
+++ b/app/assets/javascripts/admin/models/admin-user.js.es6
@@ -226,14 +226,6 @@ const AdminUser = Discourse.User.extend({
       .catch(popupAjaxError);
   },
 
-  refreshBrowsers() {
-    return ajax("/admin/users/" + this.get("id") + "/refresh_browsers", {
-      type: "POST"
-    }).finally(() =>
-      bootbox.alert(I18n.t("admin.user.refresh_browsers_message"))
-    );
-  },
-
   approve() {
     const self = this;
     return ajax("/admin/users/" + this.get("id") + "/approve", {
diff --git a/app/assets/javascripts/admin/templates/user-index.hbs b/app/assets/javascripts/admin/templates/user-index.hbs
index 5e5dd9b..dc69ee5 100644
--- a/app/assets/javascripts/admin/templates/user-index.hbs
+++ b/app/assets/javascripts/admin/templates/user-index.hbs
@@ -148,10 +148,6 @@
     <div class="value">{{model.ip_address}}</div>
     <div class="controls">
       {{#if currentUser.staff}}
-        {{d-button
-          class="btn-default"
-          action=(action "refreshBrowsers")
-          label="admin.user.refresh_browsers"}}
         {{ip-lookup ip=model.ip_address userId=model.id}}
       {{/if}}
     </div>
diff --git a/app/controllers/admin/users_controller.rb b/app/controllers/admin/users_controller.rb
index ec9f92f..98eec91 100644
--- a/app/controllers/admin/users_controller.rb
+++ b/app/controllers/admin/users_controller.rb
@@ -6,7 +6,6 @@ class Admin::UsersController < Admin::AdminController
 
   before_action :fetch_user, only: [:suspend,
                                     :unsuspend,
-                                    :refresh_browsers,
                                     :log_out,
                                     :revoke_admin,
                                     :grant_admin,
@@ -175,11 +174,6 @@ class Admin::UsersController < Admin::AdminController
     end
   end
 
-  def refresh_browsers
-    refresh_browser @user
-    render body: nil
-  end
-
   def revoke_admin
     guardian.ensure_can_revoke_admin!(@user)
     @user.revoke_admin!
diff --git a/config/locales/client.ar.yml b/config/locales/client.ar.yml
index 6a6b9d2..1b4099e 100644
--- a/config/locales/client.ar.yml
+++ b/config/locales/client.ar.yml
@@ -3255,8 +3255,6 @@ ar:
         suspended: "معلّق؟"
         staged: "تنظيم؟"
         show_admin_profile: "مدير"
-        refresh_browsers: "أجبر إنعاش المتصفح"
-        refresh_browsers_message: "الرسالة أُرسلت إلى كل الأعضاء!"
         show_public_profile: "عرض الملف العام."
         impersonate: "انتحال شخصية"
         action_logs: "سجلات الاجراء"
diff --git a/config/locales/client.bg.yml b/config/locales/client.bg.yml
index 225edbf..219e8c0 100644
--- a/config/locales/client.bg.yml
+++ b/config/locales/client.bg.yml
@@ -2357,8 +2357,6 @@ bg:
         suspended: "Отстранен? "
         staged: "Поставен?"
         show_admin_profile: "Админ"
-        refresh_browsers: "Принудително опресняване на браузъра "
-        refresh_browsers_message: "Съобщението е изпратено до всички клиенти! "
         show_public_profile: "Покажи публичния профил "
         impersonate: "Представени "
         ip_lookup: "IP търсене "
diff --git a/config/locales/client.bs_BA.yml b/config/locales/client.bs_BA.yml
index 70f79f1..f5b414e 100644
--- a/config/locales/client.bs_BA.yml
+++ b/config/locales/client.bs_BA.yml
@@ -2539,8 +2539,6 @@ bs_BA:
         admin: "Admin?"
         suspended: "Suspended?"
         show_admin_profile: "Admin"
-        refresh_browsers: "Force browser refresh"
-        refresh_browsers_message: "Message sent to all clients!"
         show_public_profile: "Show Public Profile"
         impersonate: "Impersonate"
         ip_lookup: "IP Lookup"
diff --git a/config/locales/client.ca.yml b/config/locales/client.ca.yml
index 4edc500..de024bc 100644
--- a/config/locales/client.ca.yml
+++ b/config/locales/client.ca.yml
@@ -2573,8 +2573,6 @@ ca:
         suspended: "Suspès?"
         staged: "Escenificat?"
         show_admin_profile: "Administració"
-        refresh_browsers: "Força l'actualització del navegador"
-        refresh_browsers_message: "Missatge enviat a totes les persones clientes!"
         show_public_profile: "Mostra perfil públic"
         impersonate: "Personifica"
         action_logs: "Registres d'accions"
diff --git a/config/locales/client.cs.yml b/config/locales/client.cs.yml
index 01e10c3..0ecc31a 100644
--- a/config/locales/client.cs.yml
+++ b/config/locales/client.cs.yml
@@ -3563,8 +3563,6 @@ cs:
         suspended: "Zakázán?"
         staged: "Staged?"
         show_admin_profile: "Administrace"
-        refresh_browsers: "Vynutit obnovení prohlížeče"
-        refresh_browsers_message: "Zpráva odeslána všem klientům!"
         show_public_profile: "Zobrazit veřejný profil"
         impersonate: "Vydávat se za uživatele"
         action_logs: "Logy akcí"
diff --git a/config/locales/client.da.yml b/config/locales/client.da.yml
index 2fe03e7..0e214e6 100644
--- a/config/locales/client.da.yml
+++ b/config/locales/client.da.yml
@@ -2711,8 +2711,6 @@ da:
         suspended: "Suspenderet?"
         staged: "Midlertidig?"
         show_admin_profile: "Admin"
-        refresh_browsers: "Gennemtving browser refresh"
-        refresh_browsers_message: "Beskeden er sendt til alle tilsluttede browsere!"
         show_public_profile: "Vis offentlig profil"
         impersonate: "Impersonate"
         action_logs: "Aktivitetslog"
diff --git a/config/locales/client.de.yml b/config/locales/client.de.yml
index 4633a74..b398afd 100644
--- a/config/locales/client.de.yml
+++ b/config/locales/client.de.yml
@@ -3559,8 +3559,6 @@ de:
         suspended: "Gesperrt?"
         staged: "Vorbereitet?"
         show_admin_profile: "Administration"
-        refresh_browsers: "Aktualisierung im Browser erzwingen"
-        refresh_browsers_message: "Nachricht wurde an alle Clients gesendet!"
         show_public_profile: "Zeige öffentliches Profil"
         impersonate: "Nutzersicht"
         action_logs: "Aktionsprotokoll"
diff --git a/config/locales/client.el.yml b/config/locales/client.el.yml
index 215bde9..f3f4686 100644
--- a/config/locales/client.el.yml
+++ b/config/locales/client.el.yml
@@ -2883,8 +2883,6 @@ el:
         suspended: "Αποβλημένος;"
         staged: "Στάδιο Μετάβασης;"
         show_admin_profile: "Διαχείριση"
-        refresh_browsers: "Να ανανεωθεί αναγκαστικά η σελίδα"
-        refresh_browsers_message: "Το μήνυμα στάλθηκε σε όλους τους χρήστες!"
         show_public_profile: "Εμφάνισε το Δημόσιο Προφίλ"
         impersonate: "Υποδυθείτε"
         action_logs: "Καταγραφές Ενεργειών"
diff --git a/config/locales/client.en.yml b/config/locales/client.en.yml
index 3503ce4..dcd490a 100644
--- a/config/locales/client.en.yml
+++ b/config/locales/client.en.yml
@@ -3834,8 +3834,6 @@ en:
         suspended: "Suspended?"
         staged: "Staged?"
         show_admin_profile: "Admin"
-        refresh_browsers: "Force browser refresh"
-        refresh_browsers_message: "Message sent to all clients!"
         show_public_profile: "Show Public Profile"
         impersonate: "Impersonate"
         action_logs: "Action Logs"
diff --git a/config/locales/client.es.yml b/config/locales/client.es.yml
index eca82e1..3636813 100644

[... diff too long, it was truncated ...]

GitHub sha: 9ade04b7