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

This commit is contained in:
Joffrey JAFFEUX 2019-02-19 16:38:21 +01:00 committed by GitHub
parent b3ab0e5753
commit 9ade04b709
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
47 changed files with 0 additions and 106 deletions

View File

@ -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();
},

View File

@ -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", {

View File

@ -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>

View File

@ -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!

View File

@ -3255,8 +3255,6 @@ ar:
suspended: "معلّق؟"
staged: "تنظيم؟"
show_admin_profile: "مدير"
refresh_browsers: "أجبر إنعاش المتصفح"
refresh_browsers_message: "الرسالة أُرسلت إلى كل الأعضاء!"
show_public_profile: "عرض الملف العام."
impersonate: "انتحال شخصية"
action_logs: "سجلات الاجراء"

View File

@ -2357,8 +2357,6 @@ bg:
suspended: "Отстранен? "
staged: "Поставен?"
show_admin_profile: "Админ"
refresh_browsers: "Принудително опресняване на браузъра "
refresh_browsers_message: "Съобщението е изпратено до всички клиенти! "
show_public_profile: "Покажи публичния профил "
impersonate: "Представени "
ip_lookup: "IP търсене "

View File

@ -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"

View File

@ -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"

View File

@ -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í"

View File

@ -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"

View File

@ -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"

View File

@ -2883,8 +2883,6 @@ el:
suspended: "Αποβλημένος;"
staged: "Στάδιο Μετάβασης;"
show_admin_profile: "Διαχείριση"
refresh_browsers: "Να ανανεωθεί αναγκαστικά η σελίδα"
refresh_browsers_message: "Το μήνυμα στάλθηκε σε όλους τους χρήστες!"
show_public_profile: "Εμφάνισε το Δημόσιο Προφίλ"
impersonate: "Υποδυθείτε"
action_logs: "Καταγραφές Ενεργειών"

View File

@ -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"

View File

@ -3563,8 +3563,6 @@ es:
suspended: "¿Suspendido?"
staged: "¿Provisional?"
show_admin_profile: "Administrador"
refresh_browsers: "Forzar recarga del navegador"
refresh_browsers_message: "¡Mensaje enviado a todos los clientes!"
show_public_profile: "Ver perfil público"
impersonate: "Impersonar a"
action_logs: "Logs de acciones"

View File

@ -2978,8 +2978,6 @@ et:
suspended: "Peatatud?"
staged: "Ettevalmistamisel?"
show_admin_profile: "Admin"
refresh_browsers: "Sunni brauserit värskendama"
refresh_browsers_message: "Sõnum saadetud kõigile klientidele!"
show_public_profile: "Näita avalikku profiili"
impersonate: "Kehasta"
action_logs: "Toimingute logi"

View File

@ -2780,8 +2780,6 @@ fa_IR:
suspended: "تعلیق شد؟"
staged: "کاربر خودکار؟"
show_admin_profile: "مدیر ارشد"
refresh_browsers: "تازه کردن اجباری مرورگر"
refresh_browsers_message: "ارسال پیام به تمام مشتریان! "
show_public_profile: "نمایش نمایه عمومی"
impersonate: "جعل هویت کردن"
action_logs: "گزارش گار"

View File

@ -3560,8 +3560,6 @@ fi:
suspended: "Hyllytetty?"
staged: "Esikäyttäjä?"
show_admin_profile: "Ylläpito"
refresh_browsers: "Pakota sivun uudelleen lataus"
refresh_browsers_message: "Sanoma lähetettiin kaikille päätelaitteille!"
show_public_profile: "Näytä julkinen profiili"
impersonate: "Esiinny käyttäjänä"
action_logs: "Toimintaloki"

View File

@ -3577,8 +3577,6 @@ fr:
suspended: "Suspendu ?"
staged: "Distant ?"
show_admin_profile: "Administration"
refresh_browsers: "Forcer le rafraîchissement du navigateur"
refresh_browsers_message: "Message envoyé à tous les clients !"
show_public_profile: "Afficher le profil public"
impersonate: "Incarner"
action_logs: "Journaux d'actions"

View File

@ -1930,8 +1930,6 @@ gl:
suspended: "Suspendido?"
staged: "Transitorio?"
show_admin_profile: "Administración"
refresh_browsers: "Forzar a actualización do navegador"
refresh_browsers_message: "Mensaxe enviada a todos os clientes."
show_public_profile: "Amosar o perfil público"
impersonate: "Suplantar"
ip_lookup: "Busca de IP"

View File

@ -2905,8 +2905,6 @@ he:
suspended: "מושעה?"
staged: "מועמד?"
show_admin_profile: "מנהל ראשי"
refresh_browsers: "הכרח רענון דפדפן"
refresh_browsers_message: "ההודעה נשלחה לכל הלקוחות!"
show_public_profile: "הצג פרופיל פומבי"
impersonate: "התחזה"
action_logs: "יומני פעולות"

View File

@ -2794,8 +2794,6 @@ hu:
admin: "Adminisztrátor?"
suspended: "Felfüggesztett?"
show_admin_profile: "Adminisztrátor"
refresh_browsers: "Erőszakolt böngésző frissítés"
refresh_browsers_message: "Üzenet elküldve minden ügyfélnek"
show_public_profile: "Publikus profil megjelenítése"
ip_lookup: "IP-cím keresés"
log_out: "Kijelentkezés"

View File

@ -3369,8 +3369,6 @@ it:
suspended: "Sospeso?"
staged: "Temporaneo?"
show_admin_profile: "Amministratore"
refresh_browsers: "Forza l'aggiornamento del browser"
refresh_browsers_message: "Messaggio inviato a tutti i client!"
show_public_profile: "Mostra Profilo Pubblico"
impersonate: "Impersona"
action_logs: "Log Azione"

View File

@ -2686,8 +2686,6 @@ ja:
suspended: "凍結状態"
staged: "ステージドモードの状態"
show_admin_profile: "アカウントの管理"
refresh_browsers: "ブラウザを強制更新"
refresh_browsers_message: "全てのクライアントにメッセージが送信されました!"
show_public_profile: "パブリックプロフィールを見る"
impersonate: "このユーザになりすます"
action_logs: "アクションログ"

View File

@ -2971,8 +2971,6 @@ ko:
suspended: "접근 금지?"
staged: "격리조치?"
show_admin_profile: "관리자"
refresh_browsers: "브라우저 새로 고침"
refresh_browsers_message: "모든 클라이언트에게 메시지 보내기"
show_public_profile: "공개 프로필 보기"
impersonate: "사용자로 로그인하기"
action_logs: "활동 로그"

View File

@ -2890,8 +2890,6 @@ lt:
suspended: "Sustabdytas?"
staged: "Inscenizuotas?"
show_admin_profile: "Administravimas"
refresh_browsers: "Priverstinai perkrauti naršyklę"
refresh_browsers_message: "Žinutė išsiųsta visiems klientams!"
show_public_profile: "Rodyti viešą profilį"
impersonate: "Apsimesti"
action_logs: "Veiksmų įrašai"

View File

@ -2703,8 +2703,6 @@ lv:
suspended: "Neapturēts?"
staged: "Izveidots?"
show_admin_profile: "Administrators"
refresh_browsers: "Piespiest pārlūka atsvaidzināšanu (Force browser refresh)"
refresh_browsers_message: "Ziņa nosūtīta visiem klientiem!"
show_public_profile: "Parādīt publisko profilu"
impersonate: "Izlikties (Impersonate)"
action_logs: "Aktivitāšu saraksts"

View File

@ -3322,8 +3322,6 @@ nb_NO:
suspended: "Utestengt?"
staged: "Arrangert?"
show_admin_profile: "Admin"
refresh_browsers: "Tving gjenoffrisking av nettleser"
refresh_browsers_message: "Melding sendt til alle klienter!"
show_public_profile: "Vis offentlig profil"
impersonate: "Gi deg ut for å være en annen"
action_logs: "Handlingslogger"

View File

@ -3187,8 +3187,6 @@ nl:
suspended: "Geschorst?"
staged: "Staged?"
show_admin_profile: "Beheerder"
refresh_browsers: "Vernieuwen in browser forceren"
refresh_browsers_message: "Bericht verstuurd aan alle gebruikers!"
show_public_profile: "Openbaar profiel tonen"
impersonate: "Aanmelden als gebruiker"
action_logs: "Actielogboeken"

View File

@ -3308,8 +3308,6 @@ pl_PL:
suspended: "Zawieszony?"
staged: "Wystawiony?"
show_admin_profile: "Admin"
refresh_browsers: "Wymuś odświeżenie przeglądarki"
refresh_browsers_message: "Wiadomość wysłana do wszystkich klientów!"
show_public_profile: "Pokaż profil publiczny"
impersonate: "Zaloguj się na to konto"
action_logs: "Logi akcji"

View File

@ -2661,8 +2661,6 @@ pt:
suspended: "Suspendido?"
staged: "Temporário?"
show_admin_profile: "Administração"
refresh_browsers: "Forçar atualização da página no browser"
refresh_browsers_message: "Mensagem enviada para todos os clientes!"
show_public_profile: "Mostrar Perfil Público"
impersonate: "Personificar"
ip_lookup: "Pesquisa de IP"

View File

@ -3332,8 +3332,6 @@ pt_BR:
suspended: "Suspenso?"
staged: "Testado?"
show_admin_profile: "Admin"
refresh_browsers: "Forçar atualização da página no browser"
refresh_browsers_message: "Mensagem enviada para todos os clientes!"
show_public_profile: "Mostrar Perfil Público"
impersonate: "Personificar"
action_logs: "Registro de Atividades"

View File

@ -3077,8 +3077,6 @@ ro:
suspended: "Suspendat?"
staged: "În așteptare?"
show_admin_profile: "Admin"
refresh_browsers: "Forțează reîmprospătarea browserului"
refresh_browsers_message: "Mesajul a fost trimis către toţi. "
show_public_profile: "Arată profilul public"
impersonate: "Joacă rolul utilizatorului"
ip_lookup: "Căutare IP"

View File

@ -3812,8 +3812,6 @@ ru:
suspended: "Заморожен?"
staged: "Имитация?"
show_admin_profile: "Администратор"
refresh_browsers: "Выполнить перезагрузку браузера"
refresh_browsers_message: "Сообщение отправлено всем клиентам!"
show_public_profile: "Показать публичный профиль"
impersonate: "Представиться как пользователь"
action_logs: "Журнал действий"

View File

@ -2825,8 +2825,6 @@ sk:
suspended: "Odobrate práva?"
staged: "Dočasný?"
show_admin_profile: "Admin"
refresh_browsers: "Vynútiť refresh browsera."
refresh_browsers_message: "Správa odoslaná všetkým klientom!"
show_public_profile: "Ukázať verejný profil"
impersonate: "Privlastniť"
ip_lookup: "Vyhľadávanie IP"

View File

@ -3450,8 +3450,6 @@ sl:
admin: "Admin?"
suspended: "Suspendiran?"
show_admin_profile: "Admin"
refresh_browsers: "Zahtevaj osvežitev brskalnika"
refresh_browsers_message: "Obvestilo poslano vsem odjemalcem!"
show_public_profile: "Pokaži javni profil"
impersonate: "Poosebi uporabnika"
action_logs: "Dnevnik akcij"

View File

@ -2260,8 +2260,6 @@ sq:
suspended: "Pezulluar?"
staged: "Staged?"
show_admin_profile: "Admin"
refresh_browsers: "Forco rifreskimin e shfletuesit"
refresh_browsers_message: "Mesazhi u dërgua tek të gjithë klientët!"
show_public_profile: "Shfaq Profilin Publik"
impersonate: "Personifiko"
ip_lookup: "Shiko IP"

View File

@ -1734,8 +1734,6 @@ sr:
admin: "Administrator?"
suspended: "Suspendovan?"
show_admin_profile: "Administrator"
refresh_browsers: "Forsiraj osveživanje pretraživača"
refresh_browsers_message: "Poruka poslata svim klijentima!"
show_public_profile: "Pokaži javni profil"
impersonate: "Predstavi se kao"
ip_lookup: "IP Pregled"

View File

@ -2564,8 +2564,6 @@ sv:
suspended: "Avstängd?"
staged: "Arrangerad?"
show_admin_profile: "Administratör"
refresh_browsers: "Tvinga webbläsaruppdatering"
refresh_browsers_message: "Meddelande skickat till alla klienter!"
show_public_profile: "Visa publik profil"
impersonate: "Imitera"
action_logs: "Åtgärdslogg"

View File

@ -3069,8 +3069,6 @@ sw:
admin: "Kiongozi?"
suspended: "Imesitishwa?"
show_admin_profile: "Msimamizi"
refresh_browsers: "Lazimisha uanzishaji upya wa kivinjari"
refresh_browsers_message: "Ujumbe umetumwa kwa watumiaji wote!"
show_public_profile: "Onyesha Taarifa za Umma"
impersonate: "Chukua Utambulisho wa Mtu Mwingine"
action_logs: "Taarifa za Shughuli Tofauti"

View File

@ -1463,8 +1463,6 @@ te:
admin: "అధికారి?"
suspended: "సస్పెండయ్యాడా? "
show_admin_profile: "అధికారి"
refresh_browsers: "బ్రౌజరు తాజాకరణ బలవంతంచేయి"
refresh_browsers_message: "అన్ని క్లైంటులకు సందేశం పంపబడింది!"
show_public_profile: "ప్రజా ప్రవర చూపు"
impersonate: "పరకాయప్రవేశం చేయి"
ip_lookup: "ఐపీ లుకప్"

View File

@ -3315,8 +3315,6 @@ tr_TR:
suspended: "Askıya mı alındı?"
staged: "Aşamalı mı?"
show_admin_profile: "Yönetici"
refresh_browsers: "Tarayıcıyı sayfa yenilemesine zorla"
refresh_browsers_message: "Mesaj tüm kullanıcılara gönderildi!"
show_public_profile: "Herkese Açık Profili Göster"
impersonate: "Taklit et"
action_logs: "İşlem Kayıtları"

View File

@ -1449,8 +1449,6 @@ uk:
admin: "Адмін?"
suspended: "Призупинено?"
show_admin_profile: "Адмін"
refresh_browsers: "Примусово оновити оглядач"
refresh_browsers_message: "Повідомлення надіслано всім клієнтам!"
show_public_profile: "Показати публічний профіль"
impersonate: "Втілитися"
ip_lookup: "Пошук IP"

View File

@ -3125,8 +3125,6 @@ ur:
suspended: "معطل کردہ؟"
staged: "سٹَیجڈ؟"
show_admin_profile: "ایڈمن"
refresh_browsers: "براؤزر رِیفریش فورس کریں"
refresh_browsers_message: "تمام کلائینٹس کو پیغام بھیجا!"
show_public_profile: "پبلک پروفائل دکھائیں"
impersonate: "نقالی"
action_logs: "عوامل کے لاگز"

View File

@ -2241,8 +2241,6 @@ vi:
suspended: "Đã tạm khóa?"
staged: "Cấp bậc?"
show_admin_profile: "Quản trị"
refresh_browsers: "Bắt buộc làm mới trình duyệt"
refresh_browsers_message: "Tin nhắn đã gửi cho tất cả người dùng!"
show_public_profile: "Hiển thị hồ sơ công khai"
impersonate: "Mạo danh"
ip_lookup: "Tìm kiếm địa chỉ IP"

View File

@ -3353,8 +3353,6 @@ zh_CN:
suspended: "已禁止?"
staged: "暂存?"
show_admin_profile: "管理员"
refresh_browsers: "强制浏览器刷新"
refresh_browsers_message: "私信发送至所有用户!"
show_public_profile: "显示公开介绍"
impersonate: "检视角度"
action_logs: "操作日志"

View File

@ -2725,8 +2725,6 @@ zh_TW:
suspended: "已停權?"
staged: "暫存?"
show_admin_profile: "管理員"
refresh_browsers: "強制瀏覽器重新整理"
refresh_browsers_message: "訊息已寄出給所有用戶!"
show_public_profile: "顯示公開的基本資料"
impersonate: "檢視角度"
action_logs: "操作紀錄"

View File

@ -117,7 +117,6 @@ Discourse::Application.routes.draw do
put "revoke_moderation", constraints: AdminConstraint.new
put "grant_moderation", constraints: AdminConstraint.new
put "approve"
post "refresh_browsers", constraints: AdminConstraint.new
post "log_out", constraints: AdminConstraint.new
put "activate"
put "deactivate"