mirror of
https://github.com/discourse/discourse.git
synced 2024-12-19 13:54:00 +08:00
UX: Copy for feature feed toggle (#30196)
Makes it so the result of toggling a new feature feed item is clearer.
This commit is contained in:
parent
19c3f7db93
commit
cd8e03086f
|
@ -4,6 +4,7 @@ import { on } from "@ember/modifier";
|
||||||
import { action } from "@ember/object";
|
import { action } from "@ember/object";
|
||||||
import didInsert from "@ember/render-modifiers/modifiers/did-insert";
|
import didInsert from "@ember/render-modifiers/modifiers/did-insert";
|
||||||
import { service } from "@ember/service";
|
import { service } from "@ember/service";
|
||||||
|
import { htmlSafe } from "@ember/template";
|
||||||
import { and, not } from "truth-helpers";
|
import { and, not } from "truth-helpers";
|
||||||
import CookText from "discourse/components/cook-text";
|
import CookText from "discourse/components/cook-text";
|
||||||
import DToggleSwitch from "discourse/components/d-toggle-switch";
|
import DToggleSwitch from "discourse/components/d-toggle-switch";
|
||||||
|
@ -127,12 +128,22 @@ export default class DiscourseNewFeatureItem extends Component {
|
||||||
<div class="admin-new-feature-item__tooltip">
|
<div class="admin-new-feature-item__tooltip">
|
||||||
<div class="admin-new-feature-item__tooltip-header">
|
<div class="admin-new-feature-item__tooltip-header">
|
||||||
{{i18n
|
{{i18n
|
||||||
"admin.dashboard.new_features.experiment_tooltip.title"
|
(if
|
||||||
|
this.experimentEnabled
|
||||||
|
"admin.dashboard.new_features.experiment_tooltip.title_enabled"
|
||||||
|
"admin.dashboard.new_features.experiment_tooltip.title_disabled"
|
||||||
|
)
|
||||||
}}
|
}}
|
||||||
</div>
|
</div>
|
||||||
<div class="admin-new-feature-item__tooltip-content">
|
<div class="admin-new-feature-item__tooltip-content">
|
||||||
{{i18n
|
{{htmlSafe
|
||||||
"admin.dashboard.new_features.experiment_tooltip.content"
|
(i18n
|
||||||
|
(if
|
||||||
|
this.experimentEnabled
|
||||||
|
"admin.dashboard.new_features.experiment_tooltip.content_enabled"
|
||||||
|
"admin.dashboard.new_features.experiment_tooltip.content_disabled"
|
||||||
|
)
|
||||||
|
)
|
||||||
}}
|
}}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -5148,8 +5148,10 @@ en:
|
||||||
experiment_disabled: "You have disabled the experimental feature."
|
experiment_disabled: "You have disabled the experimental feature."
|
||||||
experiment_toggled_too_fast: "You have toggled the experimental feature too fast. Please wait a few seconds before trying again."
|
experiment_toggled_too_fast: "You have toggled the experimental feature too fast. Please wait a few seconds before trying again."
|
||||||
experiment_tooltip:
|
experiment_tooltip:
|
||||||
title: "Try our experimental feature"
|
title_disabled: "Try our experimental feature"
|
||||||
content: "Give our newest feature in development a spin! It's still in the experimental stage, so we might remove it at any time. You can opt-out whenever you like."
|
title_enabled: "Turn off experimental feature"
|
||||||
|
content_disabled: "Give our newest feature in development a spin! It's still in the experimental stage, so we might remove it at any time. You can opt-out whenever you like.<br/><br/>Changing this will enable the feature for all users."
|
||||||
|
content_enabled: "Changing this will disable the feature for all users."
|
||||||
|
|
||||||
last_checked: "Last checked"
|
last_checked: "Last checked"
|
||||||
refresh_problems: "Refresh"
|
refresh_problems: "Refresh"
|
||||||
|
|
Loading…
Reference in New Issue
Block a user