From 9bae2377924f4cda71bdff54fd270ef03ac9443c Mon Sep 17 00:00:00 2001 From: Jeong Arm Date: Fri, 9 Aug 2024 21:47:02 +0900 Subject: [PATCH] Change confirmation prompt on trending management (#19626) --- app/views/admin/trends/links/index.html.haml | 8 ++++---- app/views/admin/trends/statuses/index.html.haml | 8 ++++---- app/views/admin/trends/tags/index.html.haml | 4 ++-- config/locales/en.yml | 10 ++++++++++ 4 files changed, 20 insertions(+), 10 deletions(-) diff --git a/app/views/admin/trends/links/index.html.haml b/app/views/admin/trends/links/index.html.haml index 647c24b1e9e..e54acd656f4 100644 --- a/app/views/admin/trends/links/index.html.haml +++ b/app/views/admin/trends/links/index.html.haml @@ -39,22 +39,22 @@ .batch-table__toolbar__actions = f.button safe_join([material_symbol('check'), t('admin.trends.links.allow')]), class: 'table-action-link', - data: { confirm: t('admin.reports.are_you_sure') }, + data: { confirm: t('admin.trends.links.confirm_allow') }, name: :approve, type: :submit = f.button safe_join([material_symbol('check'), t('admin.trends.links.allow_provider')]), class: 'table-action-link', - data: { confirm: t('admin.reports.are_you_sure') }, + data: { confirm: t('admin.trends.links.confirm_allow_provider') }, name: :approve_providers, type: :submit = f.button safe_join([material_symbol('close'), t('admin.trends.links.disallow')]), class: 'table-action-link', - data: { confirm: t('admin.reports.are_you_sure') }, + data: { confirm: t('admin.trends.links.confirm_disallow') }, name: :reject, type: :submit = f.button safe_join([material_symbol('close'), t('admin.trends.links.disallow_provider')]), class: 'table-action-link', - data: { confirm: t('admin.reports.are_you_sure') }, + data: { confirm: t('admin.trends.links.confirm_disallow_provider') }, name: :reject_providers, type: :submit .batch-table__body diff --git a/app/views/admin/trends/statuses/index.html.haml b/app/views/admin/trends/statuses/index.html.haml index 4713f8c2ae8..f9238dee461 100644 --- a/app/views/admin/trends/statuses/index.html.haml +++ b/app/views/admin/trends/statuses/index.html.haml @@ -35,22 +35,22 @@ .batch-table__toolbar__actions = f.button safe_join([material_symbol('check'), t('admin.trends.statuses.allow')]), class: 'table-action-link', - data: { confirm: t('admin.reports.are_you_sure') }, + data: { confirm: t('admin.trends.statuses.confirm_allow') }, name: :approve, type: :submit = f.button safe_join([material_symbol('check'), t('admin.trends.statuses.allow_account')]), class: 'table-action-link', - data: { confirm: t('admin.reports.are_you_sure') }, + data: { confirm: t('admin.trends.statuses.confirm_allow_account') }, name: :approve_accounts, type: :submit = f.button safe_join([material_symbol('close'), t('admin.trends.statuses.disallow')]), class: 'table-action-link', - data: { confirm: t('admin.reports.are_you_sure') }, + data: { confirm: t('admin.trends.statuses.confirm_disallow') }, name: :reject, type: :submit = f.button safe_join([material_symbol('close'), t('admin.trends.statuses.disallow_account')]), class: 'table-action-link', - data: { confirm: t('admin.reports.are_you_sure') }, + data: { confirm: t('admin.trends.statuses.confirm_disallow_account') }, name: :reject_accounts, type: :submit .batch-table__body diff --git a/app/views/admin/trends/tags/index.html.haml b/app/views/admin/trends/tags/index.html.haml index 3a44cf3a70e..480877456f5 100644 --- a/app/views/admin/trends/tags/index.html.haml +++ b/app/views/admin/trends/tags/index.html.haml @@ -27,12 +27,12 @@ .batch-table__toolbar__actions = f.button safe_join([material_symbol('check'), t('admin.trends.allow')]), class: 'table-action-link', - data: { confirm: t('admin.reports.are_you_sure') }, + data: { confirm: t('admin.trends.confirm_allow') }, name: :approve, type: :submit = f.button safe_join([material_symbol('close'), t('admin.trends.disallow')]), class: 'table-action-link', - data: { confirm: t('admin.reports.are_you_sure') }, + data: { confirm: t('admin.trends.confirm_disallow') }, name: :reject, type: :submit diff --git a/config/locales/en.yml b/config/locales/en.yml index aab8db18153..771bada5203 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -907,10 +907,16 @@ en: trends: allow: Allow approved: Approved + confirm_allow: Are you sure you want to allow selected tags? + confirm_disallow: Are you sure you want to disallow selected tags? disallow: Disallow links: allow: Allow link allow_provider: Allow publisher + confirm_allow: Are you sure you want to allow selected links? + confirm_allow_provider: Are you sure you want to allow selected providers? + confirm_disallow: Are you sure you want to disallow selected links? + confirm_disallow_provider: Are you sure you want to disallow selected providers? description_html: These are links that are currently being shared a lot by accounts that your server sees posts from. It can help your users find out what's going on in the world. No links are displayed publicly until you approve the publisher. You can also allow or reject individual links. disallow: Disallow link disallow_provider: Disallow publisher @@ -934,6 +940,10 @@ en: statuses: allow: Allow post allow_account: Allow author + confirm_allow: Are you sure you want to allow selected statuses? + confirm_allow_account: Are you sure you want to allow selected accounts? + confirm_disallow: Are you sure you want to disallow selected statuses? + confirm_disallow_account: Are you sure you want to disallow selected accounts? description_html: These are posts that your server knows about that are currently being shared and favorited a lot at the moment. It can help your new and returning users to find more people to follow. No posts are displayed publicly until you approve the author, and the author allows their account to be suggested to others. You can also allow or reject individual posts. disallow: Disallow post disallow_account: Disallow author