diff --git a/app/views/admin/statuses/show.html.haml b/app/views/admin/statuses/show.html.haml
index cedcdbc29f..08478a41f2 100644
--- a/app/views/admin/statuses/show.html.haml
+++ b/app/views/admin/statuses/show.html.haml
@@ -48,15 +48,15 @@
%div.action-buttons
%div
- if @account.local?
- = link_to t('admin.statuses.remove_history'), remove_history_admin_account_status_path(@account.id), method: :post, class: 'button' if can?(:warn, @account)
+ = link_to t('admin.statuses.remove_history'), remove_history_admin_account_status_path(@account.id), data: { confirm: t('admin.statuses.are_you_sure') }, method: :post, class: 'button' if can?(:warn, @account)
- if @account.local? && @status.with_media?
- = link_to t('admin.statuses.remove_media'), remove_media_admin_account_status_path(@account.id), method: :post, class: 'button' if can?(:warn, @account)
+ = link_to t('admin.statuses.remove_media'), remove_media_admin_account_status_path(@account.id), data: { confirm: t('admin.statuses.are_you_sure') }, method: :post, class: 'button' if can?(:warn, @account)
- if @account.local? && !@status.sensitive && @status.with_media?
- = link_to t('admin.statuses.force_nsfw'), force_sensitive_admin_account_status_path(@account.id), method: :post, class: 'button' if can?(:warn, @account)
+ = link_to t('admin.statuses.force_nsfw'), force_sensitive_admin_account_status_path(@account.id), data: { confirm: t('admin.statuses.are_you_sure') }, method: :post, class: 'button' if can?(:warn, @account)
- if @account.local? && !@status.spoiler_text.present?
- = link_to t('admin.statuses.force_cw'), force_cw_admin_account_status_path(@account.id), method: :post, class: 'button' if can?(:warn, @account)
+ = link_to t('admin.statuses.force_cw'), force_cw_admin_account_status_path(@account.id), data: { confirm: t('admin.statuses.are_you_sure') }, method: :post, class: 'button' if can?(:warn, @account)
- if @account.local?
- = link_to t('admin.statuses.remove'), remove_status_admin_account_status_path(@account.id), method: :post, class: 'button' if can?(:warn, @account)
+ = link_to t('admin.statuses.remove'), remove_status_admin_account_status_path(@account.id), data: { confirm: t('admin.statuses.are_you_sure') }, method: :post, class: 'button' if can?(:warn, @account)
%hr.spacer/
diff --git a/config/locales/en.yml b/config/locales/en.yml
index b4147956a5..b0606b62c0 100644
--- a/config/locales/en.yml
+++ b/config/locales/en.yml
@@ -772,6 +772,7 @@ en:
statuses:
account: Author
application: Application
+ are_you_sure: Are you sure?
back_to_account: Back to account page
back_to_report: Back to report page
batch:
diff --git a/config/locales/ja.yml b/config/locales/ja.yml
index 01761f6b79..3f42663bea 100644
--- a/config/locales/ja.yml
+++ b/config/locales/ja.yml
@@ -758,6 +758,7 @@ ja:
statuses:
account: 作成者
application: アプリ
+ are_you_sure: 本当に実行しますか?
back_to_account: アカウントページに戻る
back_to_report: 通報ページに戻る
batch: