mirror of
https://github.com/discourse/discourse.git
synced 2025-02-24 18:57:14 +08:00
DEV: Change dIcon to icon in components (#31083)
Apparently `icon` is the preferred nomenclature
This commit is contained in:
parent
dfb64f9b84
commit
7fd9550f64
@ -12,7 +12,7 @@ import DButton from "discourse/components/d-button";
|
|||||||
import DPageSubheader from "discourse/components/d-page-subheader";
|
import DPageSubheader from "discourse/components/d-page-subheader";
|
||||||
import DateTimeInputRange from "discourse/components/date-time-input-range";
|
import DateTimeInputRange from "discourse/components/date-time-input-range";
|
||||||
import concatClass from "discourse/helpers/concat-class";
|
import concatClass from "discourse/helpers/concat-class";
|
||||||
import dIcon from "discourse/helpers/d-icon";
|
import icon from "discourse/helpers/d-icon";
|
||||||
import number from "discourse/helpers/number";
|
import number from "discourse/helpers/number";
|
||||||
import { reportModeComponent } from "discourse/lib/admin-report-additional-modes";
|
import { reportModeComponent } from "discourse/lib/admin-report-additional-modes";
|
||||||
import { REPORT_MODES } from "discourse/lib/constants";
|
import { REPORT_MODES } from "discourse/lib/constants";
|
||||||
@ -560,7 +560,7 @@ export default class AdminReport extends Component {
|
|||||||
@interactive={{this.model.description_link.length}}
|
@interactive={{this.model.description_link.length}}
|
||||||
>
|
>
|
||||||
<:trigger>
|
<:trigger>
|
||||||
{{dIcon "circle-question"}}
|
{{icon "circle-question"}}
|
||||||
</:trigger>
|
</:trigger>
|
||||||
<:content>
|
<:content>
|
||||||
{{#if this.model.description_link}}
|
{{#if this.model.description_link}}
|
||||||
@ -595,8 +595,8 @@ export default class AdminReport extends Component {
|
|||||||
}}%{{/if}}
|
}}%{{/if}}
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
|
||||||
{{#if this.model.trendIcon}}
|
{{#if this.model.trenicon}}
|
||||||
{{dIcon this.model.trendIcon class="icon"}}
|
{{icon this.model.trenicon class="icon"}}
|
||||||
{{/if}}
|
{{/if}}
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
@ -609,21 +609,21 @@ export default class AdminReport extends Component {
|
|||||||
{{#if this.showError}}
|
{{#if this.showError}}
|
||||||
{{#if this.showTimeoutError}}
|
{{#if this.showTimeoutError}}
|
||||||
<div class="alert alert-error report-alert timeout">
|
<div class="alert alert-error report-alert timeout">
|
||||||
{{dIcon "triangle-exclamation"}}
|
{{icon "triangle-exclamation"}}
|
||||||
<span>{{i18n "admin.dashboard.timeout_error"}}</span>
|
<span>{{i18n "admin.dashboard.timeout_error"}}</span>
|
||||||
</div>
|
</div>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
|
||||||
{{#if this.showExceptionError}}
|
{{#if this.showExceptionError}}
|
||||||
<div class="alert alert-error report-alert exception">
|
<div class="alert alert-error report-alert exception">
|
||||||
{{dIcon "triangle-exclamation"}}
|
{{icon "triangle-exclamation"}}
|
||||||
<span>{{i18n "admin.dashboard.exception_error"}}</span>
|
<span>{{i18n "admin.dashboard.exception_error"}}</span>
|
||||||
</div>
|
</div>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
|
||||||
{{#if this.showNotFoundError}}
|
{{#if this.showNotFoundError}}
|
||||||
<div class="alert alert-error report-alert not-found">
|
<div class="alert alert-error report-alert not-found">
|
||||||
{{dIcon "triangle-exclamation"}}
|
{{icon "triangle-exclamation"}}
|
||||||
<span>{{i18n "admin.dashboard.not_found_error"}}</span>
|
<span>{{i18n "admin.dashboard.not_found_error"}}</span>
|
||||||
</div>
|
</div>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
@ -646,12 +646,12 @@ export default class AdminReport extends Component {
|
|||||||
{{else}}
|
{{else}}
|
||||||
{{#if this.rateLimitationString}}
|
{{#if this.rateLimitationString}}
|
||||||
<div class="alert alert-error report-alert rate-limited">
|
<div class="alert alert-error report-alert rate-limited">
|
||||||
{{dIcon "temperature-three-quarters"}}
|
{{icon "temperature-three-quarters"}}
|
||||||
<span>{{this.rateLimitationString}}</span>
|
<span>{{this.rateLimitationString}}</span>
|
||||||
</div>
|
</div>
|
||||||
{{else}}
|
{{else}}
|
||||||
<div class="alert alert-info report-alert no-data">
|
<div class="alert alert-info report-alert no-data">
|
||||||
{{dIcon "chart-pie"}}
|
{{icon "chart-pie"}}
|
||||||
{{#if this.model.reportUrl}}
|
{{#if this.model.reportUrl}}
|
||||||
<a href={{this.model.reportUrl}} class="report-url">
|
<a href={{this.model.reportUrl}} class="report-url">
|
||||||
<span>
|
<span>
|
||||||
|
@ -7,7 +7,7 @@ import {
|
|||||||
PrimaryButton,
|
PrimaryButton,
|
||||||
} from "discourse/components/d-page-action-button";
|
} from "discourse/components/d-page-action-button";
|
||||||
import concatClass from "discourse/helpers/concat-class";
|
import concatClass from "discourse/helpers/concat-class";
|
||||||
import dIcon from "discourse/helpers/d-icon";
|
import icon from "discourse/helpers/d-icon";
|
||||||
import { i18n } from "discourse-i18n";
|
import { i18n } from "discourse-i18n";
|
||||||
|
|
||||||
export default class AdminSectionLandingItem extends Component {
|
export default class AdminSectionLandingItem extends Component {
|
||||||
@ -45,7 +45,7 @@ export default class AdminSectionLandingItem extends Component {
|
|||||||
{{/if}}
|
{{/if}}
|
||||||
{{#if @icon}}
|
{{#if @icon}}
|
||||||
<div class="admin-section-landing-item__icon">
|
<div class="admin-section-landing-item__icon">
|
||||||
{{dIcon @icon}}
|
{{icon @icon}}
|
||||||
</div>
|
</div>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
<div class="admin-section-landing-item__content">
|
<div class="admin-section-landing-item__content">
|
||||||
|
@ -7,7 +7,7 @@ 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";
|
||||||
import dIcon from "discourse/helpers/d-icon";
|
import icon from "discourse/helpers/d-icon";
|
||||||
import { ajax } from "discourse/lib/ajax";
|
import { ajax } from "discourse/lib/ajax";
|
||||||
import { popupAjaxError } from "discourse/lib/ajax-error";
|
import { popupAjaxError } from "discourse/lib/ajax-error";
|
||||||
import { i18n } from "discourse-i18n";
|
import { i18n } from "discourse-i18n";
|
||||||
@ -72,7 +72,7 @@ export default class DiscourseNewFeatureItem extends Component {
|
|||||||
{{@item.title}}
|
{{@item.title}}
|
||||||
{{#if @item.experiment_setting}}
|
{{#if @item.experiment_setting}}
|
||||||
<span class="admin-new-feature-item__header-experimental">
|
<span class="admin-new-feature-item__header-experimental">
|
||||||
{{dIcon "flask"}}
|
{{icon "flask"}}
|
||||||
{{i18n "admin.dashboard.new_features.experimental"}}
|
{{i18n "admin.dashboard.new_features.experimental"}}
|
||||||
</span>
|
</span>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
import RadioButton from "discourse/components/radio-button";
|
import RadioButton from "discourse/components/radio-button";
|
||||||
import dIcon from "discourse/helpers/d-icon";
|
import icon from "discourse/helpers/d-icon";
|
||||||
import { i18n } from "discourse-i18n";
|
import { i18n } from "discourse-i18n";
|
||||||
|
|
||||||
const InstallThemeItem = <template>
|
const InstallThemeItem = <template>
|
||||||
@ -12,11 +12,11 @@ const InstallThemeItem = <template>
|
|||||||
/>
|
/>
|
||||||
<label class="radio" for={{@value}}>
|
<label class="radio" for={{@value}}>
|
||||||
{{#if @showIcon}}
|
{{#if @showIcon}}
|
||||||
{{dIcon "plus"}}
|
{{icon "plus"}}
|
||||||
{{/if}}
|
{{/if}}
|
||||||
{{i18n @label}}
|
{{i18n @label}}
|
||||||
</label>
|
</label>
|
||||||
{{dIcon "caret-right"}}
|
{{icon "caret-right"}}
|
||||||
</div>
|
</div>
|
||||||
</template>;
|
</template>;
|
||||||
|
|
||||||
|
@ -10,7 +10,7 @@ import ConditionalLoadingSection from "discourse/components/conditional-loading-
|
|||||||
import CopyButton from "discourse/components/copy-button";
|
import CopyButton from "discourse/components/copy-button";
|
||||||
import DButton from "discourse/components/d-button";
|
import DButton from "discourse/components/d-button";
|
||||||
import DModal from "discourse/components/d-modal";
|
import DModal from "discourse/components/d-modal";
|
||||||
import dIcon from "discourse/helpers/d-icon";
|
import icon from "discourse/helpers/d-icon";
|
||||||
import withEventValue from "discourse/helpers/with-event-value";
|
import withEventValue from "discourse/helpers/with-event-value";
|
||||||
import { ajax } from "discourse/lib/ajax";
|
import { ajax } from "discourse/lib/ajax";
|
||||||
import { popupAjaxError } from "discourse/lib/ajax-error";
|
import { popupAjaxError } from "discourse/lib/ajax-error";
|
||||||
@ -317,7 +317,7 @@ export default class InstallThemeModal extends Component {
|
|||||||
target="_blank"
|
target="_blank"
|
||||||
>
|
>
|
||||||
{{#if theme.component}}
|
{{#if theme.component}}
|
||||||
{{dIcon
|
{{icon
|
||||||
"puzzle-piece"
|
"puzzle-piece"
|
||||||
title="admin.customize.theme.component"
|
title="admin.customize.theme.component"
|
||||||
}}
|
}}
|
||||||
@ -347,7 +347,7 @@ export default class InstallThemeModal extends Component {
|
|||||||
rel="noopener noreferrer"
|
rel="noopener noreferrer"
|
||||||
target="_blank"
|
target="_blank"
|
||||||
>
|
>
|
||||||
{{dIcon "desktop"}}
|
{{icon "desktop"}}
|
||||||
{{i18n "admin.customize.theme.preview"}}
|
{{i18n "admin.customize.theme.preview"}}
|
||||||
</a>
|
</a>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
import { on } from "@ember/modifier";
|
import { on } from "@ember/modifier";
|
||||||
import dIcon from "discourse/helpers/d-icon";
|
import icon from "discourse/helpers/d-icon";
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<li
|
<li
|
||||||
@ -10,7 +10,7 @@ import dIcon from "discourse/helpers/d-icon";
|
|||||||
>
|
>
|
||||||
<div class="schema-theme-setting-editor__tree-node-text">
|
<div class="schema-theme-setting-editor__tree-node-text">
|
||||||
<span>{{@generateSchemaTitle @object @schema @index}}</span>
|
<span>{{@generateSchemaTitle @object @schema @index}}</span>
|
||||||
{{dIcon "chevron-right"}}
|
{{icon "chevron-right"}}
|
||||||
</div>
|
</div>
|
||||||
</li>
|
</li>
|
||||||
</template>
|
</template>
|
||||||
|
@ -4,7 +4,7 @@ import { fn } from "@ember/helper";
|
|||||||
import { on } from "@ember/modifier";
|
import { on } from "@ember/modifier";
|
||||||
import { action } from "@ember/object";
|
import { action } from "@ember/object";
|
||||||
import DButton from "discourse/components/d-button";
|
import DButton from "discourse/components/d-button";
|
||||||
import dIcon from "discourse/helpers/d-icon";
|
import icon from "discourse/helpers/d-icon";
|
||||||
import ChildTreeNode from "admin/components/schema-theme-setting/editor/child-tree-node";
|
import ChildTreeNode from "admin/components/schema-theme-setting/editor/child-tree-node";
|
||||||
|
|
||||||
export default class SchemaThemeSettingNewEditorChildTree extends Component {
|
export default class SchemaThemeSettingNewEditorChildTree extends Component {
|
||||||
@ -32,7 +32,7 @@ export default class SchemaThemeSettingNewEditorChildTree extends Component {
|
|||||||
{{on "click" this.toggleVisibility}}
|
{{on "click" this.toggleVisibility}}
|
||||||
>
|
>
|
||||||
{{@name}}
|
{{@name}}
|
||||||
{{dIcon (if this.expanded "chevron-down" "chevron-right")}}
|
{{icon (if this.expanded "chevron-down" "chevron-right")}}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{{#if this.expanded}}
|
{{#if this.expanded}}
|
||||||
|
@ -2,7 +2,7 @@ import { fn } from "@ember/helper";
|
|||||||
import { on } from "@ember/modifier";
|
import { on } from "@ember/modifier";
|
||||||
import { eq } from "truth-helpers";
|
import { eq } from "truth-helpers";
|
||||||
import DButton from "discourse/components/d-button";
|
import DButton from "discourse/components/d-button";
|
||||||
import dIcon from "discourse/helpers/d-icon";
|
import icon from "discourse/helpers/d-icon";
|
||||||
import TreeNode from "admin/components/schema-theme-setting/editor/tree-node";
|
import TreeNode from "admin/components/schema-theme-setting/editor/tree-node";
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
@ -14,7 +14,7 @@ import TreeNode from "admin/components/schema-theme-setting/editor/tree-node";
|
|||||||
{{on "click" @clickBack}}
|
{{on "click" @clickBack}}
|
||||||
>
|
>
|
||||||
<div class="schema-theme-setting-editor__tree-node-text">
|
<div class="schema-theme-setting-editor__tree-node-text">
|
||||||
{{dIcon "arrow-left"}}
|
{{icon "arrow-left"}}
|
||||||
{{@backButtonText}}
|
{{@backButtonText}}
|
||||||
</div>
|
</div>
|
||||||
</li>
|
</li>
|
||||||
|
@ -5,7 +5,7 @@ import { service } from "@ember/service";
|
|||||||
import { htmlSafe } from "@ember/template";
|
import { htmlSafe } from "@ember/template";
|
||||||
import AboutPageUsers from "discourse/components/about-page-users";
|
import AboutPageUsers from "discourse/components/about-page-users";
|
||||||
import PluginOutlet from "discourse/components/plugin-outlet";
|
import PluginOutlet from "discourse/components/plugin-outlet";
|
||||||
import dIcon from "discourse/helpers/d-icon";
|
import icon from "discourse/helpers/d-icon";
|
||||||
import escape from "discourse/lib/escape";
|
import escape from "discourse/lib/escape";
|
||||||
import { number } from "discourse/lib/formatter";
|
import { number } from "discourse/lib/formatter";
|
||||||
import I18n, { i18n } from "discourse-i18n";
|
import I18n, { i18n } from "discourse-i18n";
|
||||||
@ -230,7 +230,7 @@ export default class AboutPage extends Component {
|
|||||||
{{#if this.currentUser.admin}}
|
{{#if this.currentUser.admin}}
|
||||||
<p>
|
<p>
|
||||||
<LinkTo class="edit-about-page" @route="adminConfig.about">
|
<LinkTo class="edit-about-page" @route="adminConfig.about">
|
||||||
{{dIcon "pencil"}}
|
{{icon "pencil"}}
|
||||||
<span>{{i18n "about.edit"}}</span>
|
<span>{{i18n "about.edit"}}</span>
|
||||||
</LinkTo>
|
</LinkTo>
|
||||||
</p>
|
</p>
|
||||||
@ -254,7 +254,7 @@ export default class AboutPage extends Component {
|
|||||||
<div class="about__stats">
|
<div class="about__stats">
|
||||||
{{#each this.stats as |stat|}}
|
{{#each this.stats as |stat|}}
|
||||||
<span class="about__stats-item {{stat.class}}">
|
<span class="about__stats-item {{stat.class}}">
|
||||||
{{dIcon stat.icon}}
|
{{icon stat.icon}}
|
||||||
<span>{{stat.text}}</span>
|
<span>{{stat.text}}</span>
|
||||||
</span>
|
</span>
|
||||||
{{/each}}
|
{{/each}}
|
||||||
@ -300,7 +300,7 @@ export default class AboutPage extends Component {
|
|||||||
<div class="about__activities">
|
<div class="about__activities">
|
||||||
{{#each this.siteActivities as |activity|}}
|
{{#each this.siteActivities as |activity|}}
|
||||||
<div class="about__activities-item {{activity.class}}">
|
<div class="about__activities-item {{activity.class}}">
|
||||||
<span class="about__activities-item-icon">{{dIcon
|
<span class="about__activities-item-icon">{{icon
|
||||||
activity.icon
|
activity.icon
|
||||||
}}</span>
|
}}</span>
|
||||||
<span class="about__activities-item-type">
|
<span class="about__activities-item-type">
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
import avatar from "discourse/helpers/bound-avatar-template";
|
import avatar from "discourse/helpers/bound-avatar-template";
|
||||||
import dIcon from "discourse/helpers/d-icon";
|
import icon from "discourse/helpers/d-icon";
|
||||||
import formatDate from "discourse/helpers/format-date";
|
import formatDate from "discourse/helpers/format-date";
|
||||||
|
|
||||||
const ActionsSummary = <template>
|
const ActionsSummary = <template>
|
||||||
@ -9,7 +9,7 @@ const ActionsSummary = <template>
|
|||||||
{{/each}}
|
{{/each}}
|
||||||
{{#if @data.deleted_at}}
|
{{#if @data.deleted_at}}
|
||||||
<div class="post-action deleted-post">
|
<div class="post-action deleted-post">
|
||||||
{{dIcon "trash-can"}}
|
{{icon "trash-can"}}
|
||||||
<a
|
<a
|
||||||
class="trigger-user-card"
|
class="trigger-user-card"
|
||||||
data-user-card={{@data.deletedByUsername}}
|
data-user-card={{@data.deletedByUsername}}
|
||||||
|
@ -1,11 +1,11 @@
|
|||||||
import { LinkTo } from "@ember/routing";
|
import { LinkTo } from "@ember/routing";
|
||||||
import { or } from "truth-helpers";
|
import { or } from "truth-helpers";
|
||||||
import dIcon from "discourse/helpers/d-icon";
|
import icon from "discourse/helpers/d-icon";
|
||||||
import { i18n } from "discourse-i18n";
|
import { i18n } from "discourse-i18n";
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<LinkTo class="btn btn-flat back-button" @route={{@route}}>
|
<LinkTo class="btn btn-flat back-button" @route={{@route}}>
|
||||||
{{dIcon "chevron-left"}}
|
{{icon "chevron-left"}}
|
||||||
{{i18n (or @label "back_button")}}
|
{{i18n (or @label "back_button")}}
|
||||||
</LinkTo>
|
</LinkTo>
|
||||||
</template>
|
</template>
|
||||||
|
@ -5,7 +5,7 @@ import { htmlSafe } from "@ember/template";
|
|||||||
import { isEmpty } from "@ember/utils";
|
import { isEmpty } from "@ember/utils";
|
||||||
import { eq, not } from "truth-helpers";
|
import { eq, not } from "truth-helpers";
|
||||||
import DButton from "discourse/components/d-button";
|
import DButton from "discourse/components/d-button";
|
||||||
import dIcon from "discourse/helpers/d-icon";
|
import icon from "discourse/helpers/d-icon";
|
||||||
import iconOrImage from "discourse/helpers/icon-or-image";
|
import iconOrImage from "discourse/helpers/icon-or-image";
|
||||||
import number from "discourse/helpers/number";
|
import number from "discourse/helpers/number";
|
||||||
import { emojiUnescape, sanitize } from "discourse/lib/text";
|
import { emojiUnescape, sanitize } from "discourse/lib/text";
|
||||||
@ -99,7 +99,7 @@ export default class BadgeCard extends Component {
|
|||||||
class="check-display status-checked"
|
class="check-display status-checked"
|
||||||
aria-label={{i18n "notifications.titles.granted_badge"}}
|
aria-label={{i18n "notifications.titles.granted_badge"}}
|
||||||
>
|
>
|
||||||
{{dIcon "check"}}
|
{{icon "check"}}
|
||||||
</div>
|
</div>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
|
||||||
|
@ -5,7 +5,7 @@ import ExpandPost from "discourse/components/expand-post";
|
|||||||
import PostListItemDetails from "discourse/components/post-list/item/details";
|
import PostListItemDetails from "discourse/components/post-list/item/details";
|
||||||
import avatar from "discourse/helpers/avatar";
|
import avatar from "discourse/helpers/avatar";
|
||||||
import concatClass from "discourse/helpers/concat-class";
|
import concatClass from "discourse/helpers/concat-class";
|
||||||
import dIcon from "discourse/helpers/d-icon";
|
import icon from "discourse/helpers/d-icon";
|
||||||
import formatDate from "discourse/helpers/format-date";
|
import formatDate from "discourse/helpers/format-date";
|
||||||
import { userPath } from "discourse/lib/url";
|
import { userPath } from "discourse/lib/url";
|
||||||
|
|
||||||
@ -103,7 +103,7 @@ export default class PostListItem extends Component {
|
|||||||
|
|
||||||
{{#if @post.deleted_by}}
|
{{#if @post.deleted_by}}
|
||||||
<span class="delete-info">
|
<span class="delete-info">
|
||||||
{{dIcon "trash-can"}}
|
{{icon "trash-can"}}
|
||||||
{{avatar
|
{{avatar
|
||||||
@post.deleted_by
|
@post.deleted_by
|
||||||
imageSize="tiny"
|
imageSize="tiny"
|
||||||
|
@ -4,7 +4,7 @@ import { action } from "@ember/object";
|
|||||||
import { eq } from "truth-helpers";
|
import { eq } from "truth-helpers";
|
||||||
import DButton from "discourse/components/d-button";
|
import DButton from "discourse/components/d-button";
|
||||||
import { categoryLinkHTML } from "discourse/helpers/category-link";
|
import { categoryLinkHTML } from "discourse/helpers/category-link";
|
||||||
import dIcon from "discourse/helpers/d-icon";
|
import icon from "discourse/helpers/d-icon";
|
||||||
import discourseTags from "discourse/helpers/discourse-tags";
|
import discourseTags from "discourse/helpers/discourse-tags";
|
||||||
|
|
||||||
const TopicLabelButton = <template>
|
const TopicLabelButton = <template>
|
||||||
@ -14,25 +14,25 @@ const TopicLabelButton = <template>
|
|||||||
<span class="topic-statuses">
|
<span class="topic-statuses">
|
||||||
{{#if (eq @topic.archetype "private_message")}}
|
{{#if (eq @topic.archetype "private_message")}}
|
||||||
<span class="topic-status">
|
<span class="topic-status">
|
||||||
{{dIcon "envelope"}}
|
{{icon "envelope"}}
|
||||||
</span>
|
</span>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
|
||||||
{{#if @topic.bookmarked}}
|
{{#if @topic.bookmarked}}
|
||||||
<span class="topic-status">
|
<span class="topic-status">
|
||||||
{{dIcon "bookmark"}}
|
{{icon "bookmark"}}
|
||||||
</span>
|
</span>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
|
||||||
{{#if @topic.closed}}
|
{{#if @topic.closed}}
|
||||||
<span class="topic-status">
|
<span class="topic-status">
|
||||||
{{dIcon "lock"}}
|
{{icon "lock"}}
|
||||||
</span>
|
</span>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
|
||||||
{{#if @topic.pinned}}
|
{{#if @topic.pinned}}
|
||||||
<span class="topic-status">
|
<span class="topic-status">
|
||||||
{{dIcon "thumbtack"}}
|
{{icon "thumbtack"}}
|
||||||
</span>
|
</span>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
|
||||||
|
@ -6,7 +6,7 @@ import { service } from "@ember/service";
|
|||||||
import { and } from "truth-helpers";
|
import { and } from "truth-helpers";
|
||||||
import DButton from "discourse/components/d-button";
|
import DButton from "discourse/components/d-button";
|
||||||
import avatar from "discourse/helpers/bound-avatar-template";
|
import avatar from "discourse/helpers/bound-avatar-template";
|
||||||
import dIcon from "discourse/helpers/d-icon";
|
import icon from "discourse/helpers/d-icon";
|
||||||
import { groupPath } from "discourse/lib/url";
|
import { groupPath } from "discourse/lib/url";
|
||||||
import { i18n } from "discourse-i18n";
|
import { i18n } from "discourse-i18n";
|
||||||
|
|
||||||
@ -109,7 +109,7 @@ class PmMapUserGroup extends Component {
|
|||||||
<template>
|
<template>
|
||||||
<div class="user group">
|
<div class="user group">
|
||||||
<a href={{this.groupUrl}} class="group-link">
|
<a href={{this.groupUrl}} class="group-link">
|
||||||
{{dIcon "users"}}
|
{{icon "users"}}
|
||||||
<span class="group-name">{{@model.name}}</span>
|
<span class="group-name">{{@model.name}}</span>
|
||||||
</a>
|
</a>
|
||||||
{{#if this.canRemoveLink}}
|
{{#if this.canRemoveLink}}
|
||||||
|
@ -14,7 +14,7 @@ import TopicViews from "discourse/components/topic-map/topic-views";
|
|||||||
import TopicViewsChart from "discourse/components/topic-map/topic-views-chart";
|
import TopicViewsChart from "discourse/components/topic-map/topic-views-chart";
|
||||||
import avatar from "discourse/helpers/bound-avatar-template";
|
import avatar from "discourse/helpers/bound-avatar-template";
|
||||||
import concatClass from "discourse/helpers/concat-class";
|
import concatClass from "discourse/helpers/concat-class";
|
||||||
import dIcon from "discourse/helpers/d-icon";
|
import icon from "discourse/helpers/d-icon";
|
||||||
import number from "discourse/helpers/number";
|
import number from "discourse/helpers/number";
|
||||||
import { ajax } from "discourse/lib/ajax";
|
import { ajax } from "discourse/lib/ajax";
|
||||||
import { emojiUnescape } from "discourse/lib/text";
|
import { emojiUnescape } from "discourse/lib/text";
|
||||||
@ -313,7 +313,7 @@ export default class TopicMapSummary extends Component {
|
|||||||
</span>
|
</span>
|
||||||
<span class="like-section__likes">
|
<span class="like-section__likes">
|
||||||
{{post.like_count}}
|
{{post.like_count}}
|
||||||
{{dIcon "heart"}}</span>
|
{{icon "heart"}}</span>
|
||||||
<p>
|
<p>
|
||||||
{{htmlSafe (emojiUnescape post.blurb)}}
|
{{htmlSafe (emojiUnescape post.blurb)}}
|
||||||
</p>
|
</p>
|
||||||
|
@ -13,7 +13,7 @@ import PostActionDescription from "discourse/components/post-action-description"
|
|||||||
import PostList from "discourse/components/post-list";
|
import PostList from "discourse/components/post-list";
|
||||||
import avatar from "discourse/helpers/avatar";
|
import avatar from "discourse/helpers/avatar";
|
||||||
import concatClass from "discourse/helpers/concat-class";
|
import concatClass from "discourse/helpers/concat-class";
|
||||||
import dIcon from "discourse/helpers/d-icon";
|
import icon from "discourse/helpers/d-icon";
|
||||||
import { popupAjaxError } from "discourse/lib/ajax-error";
|
import { popupAjaxError } from "discourse/lib/ajax-error";
|
||||||
import ClickTrack from "discourse/lib/click-track";
|
import ClickTrack from "discourse/lib/click-track";
|
||||||
import DiscourseURL from "discourse/lib/url";
|
import DiscourseURL from "discourse/lib/url";
|
||||||
@ -192,7 +192,7 @@ export default class UserStreamComponent extends Component {
|
|||||||
|
|
||||||
{{#each post.children as |child|}}
|
{{#each post.children as |child|}}
|
||||||
<div class="user-stream-item-actions">
|
<div class="user-stream-item-actions">
|
||||||
{{dIcon child.icon class="icon"}}
|
{{icon child.icon class="icon"}}
|
||||||
{{#each child.items as |grandChild|}}
|
{{#each child.items as |grandChild|}}
|
||||||
<a
|
<a
|
||||||
href={{grandChild.userUrl}}
|
href={{grandChild.userUrl}}
|
||||||
|
@ -7,7 +7,7 @@ import { and, not, or } from "truth-helpers";
|
|||||||
import DButton from "discourse/components/d-button";
|
import DButton from "discourse/components/d-button";
|
||||||
import PluginOutlet from "discourse/components/plugin-outlet";
|
import PluginOutlet from "discourse/components/plugin-outlet";
|
||||||
import concatClass from "discourse/helpers/concat-class";
|
import concatClass from "discourse/helpers/concat-class";
|
||||||
import dIcon from "discourse/helpers/d-icon";
|
import icon from "discourse/helpers/d-icon";
|
||||||
import { i18n } from "discourse-i18n";
|
import { i18n } from "discourse-i18n";
|
||||||
import ChatModalNewMessage from "discourse/plugins/chat/discourse/components/chat/modal/new-message";
|
import ChatModalNewMessage from "discourse/plugins/chat/discourse/components/chat/modal/new-message";
|
||||||
import EmptyChannelsList from "discourse/plugins/chat/discourse/components/empty-channels-list";
|
import EmptyChannelsList from "discourse/plugins/chat/discourse/components/empty-channels-list";
|
||||||
@ -81,7 +81,7 @@ export default class ChannelsListDirect extends Component {
|
|||||||
}}
|
}}
|
||||||
data-toggleable="direct-message-channels"
|
data-toggleable="direct-message-channels"
|
||||||
>
|
>
|
||||||
{{dIcon "angle-up"}}
|
{{icon "angle-up"}}
|
||||||
</span>
|
</span>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
|
||||||
|
@ -7,7 +7,7 @@ import { service } from "@ember/service";
|
|||||||
import { and } from "truth-helpers";
|
import { and } from "truth-helpers";
|
||||||
import PluginOutlet from "discourse/components/plugin-outlet";
|
import PluginOutlet from "discourse/components/plugin-outlet";
|
||||||
import concatClass from "discourse/helpers/concat-class";
|
import concatClass from "discourse/helpers/concat-class";
|
||||||
import dIcon from "discourse/helpers/d-icon";
|
import icon from "discourse/helpers/d-icon";
|
||||||
import { i18n } from "discourse-i18n";
|
import { i18n } from "discourse-i18n";
|
||||||
import EmptyChannelsList from "discourse/plugins/chat/discourse/components/empty-channels-list";
|
import EmptyChannelsList from "discourse/plugins/chat/discourse/components/empty-channels-list";
|
||||||
import ChatChannelRow from "./chat-channel-row";
|
import ChatChannelRow from "./chat-channel-row";
|
||||||
@ -51,7 +51,7 @@ export default class ChannelsListPublic extends Component {
|
|||||||
{{#if (and this.site.desktopView this.inSidebar this.hasThreadedChannels)}}
|
{{#if (and this.site.desktopView this.inSidebar this.hasThreadedChannels)}}
|
||||||
<LinkTo @route="chat.threads" class="chat-channel-row --threads">
|
<LinkTo @route="chat.threads" class="chat-channel-row --threads">
|
||||||
<span class="chat-channel-title">
|
<span class="chat-channel-title">
|
||||||
{{dIcon "discourse-threads" class="chat-user-threads__icon"}}
|
{{icon "discourse-threads" class="chat-user-threads__icon"}}
|
||||||
{{i18n "chat.my_threads.title"}}
|
{{i18n "chat.my_threads.title"}}
|
||||||
</span>
|
</span>
|
||||||
{{#if this.hasUnreadThreads}}
|
{{#if this.hasUnreadThreads}}
|
||||||
@ -75,7 +75,7 @@ export default class ChannelsListPublic extends Component {
|
|||||||
{{on "click" (fn this.toggleChannelSection "public-channels")}}
|
{{on "click" (fn this.toggleChannelSection "public-channels")}}
|
||||||
data-toggleable="public-channels"
|
data-toggleable="public-channels"
|
||||||
>
|
>
|
||||||
{{dIcon "angle-up"}}
|
{{icon "angle-up"}}
|
||||||
</span>
|
</span>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
|
||||||
@ -86,7 +86,7 @@ export default class ChannelsListPublic extends Component {
|
|||||||
class="btn no-text btn-flat open-browse-page-btn title-action"
|
class="btn no-text btn-flat open-browse-page-btn title-action"
|
||||||
title={{i18n "chat.channels_list_popup.browse"}}
|
title={{i18n "chat.channels_list_popup.browse"}}
|
||||||
>
|
>
|
||||||
{{dIcon "pencil"}}
|
{{icon "pencil"}}
|
||||||
</LinkTo>
|
</LinkTo>
|
||||||
</div>
|
</div>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
@ -5,7 +5,7 @@ import { service } from "@ember/service";
|
|||||||
import { gt } from "truth-helpers";
|
import { gt } from "truth-helpers";
|
||||||
import borderColor from "discourse/helpers/border-color";
|
import borderColor from "discourse/helpers/border-color";
|
||||||
import concatClass from "discourse/helpers/concat-class";
|
import concatClass from "discourse/helpers/concat-class";
|
||||||
import dIcon from "discourse/helpers/d-icon";
|
import icon from "discourse/helpers/d-icon";
|
||||||
import replaceEmoji from "discourse/helpers/replace-emoji";
|
import replaceEmoji from "discourse/helpers/replace-emoji";
|
||||||
import { i18n } from "discourse-i18n";
|
import { i18n } from "discourse-i18n";
|
||||||
import ToggleChannelMembershipButton from "./toggle-channel-membership-button";
|
import ToggleChannelMembershipButton from "./toggle-channel-membership-button";
|
||||||
@ -34,14 +34,14 @@ export default class ChatChannelCard extends Component {
|
|||||||
{{replaceEmoji @channel.title}}
|
{{replaceEmoji @channel.title}}
|
||||||
</span>
|
</span>
|
||||||
{{#if @channel.chatable.read_restricted}}
|
{{#if @channel.chatable.read_restricted}}
|
||||||
{{dIcon "lock" class="chat-channel-card__read-restricted"}}
|
{{icon "lock" class="chat-channel-card__read-restricted"}}
|
||||||
{{/if}}
|
{{/if}}
|
||||||
{{#if @channel.currentUserMembership.muted}}
|
{{#if @channel.currentUserMembership.muted}}
|
||||||
<span
|
<span
|
||||||
class="chat-channel-card__muted"
|
class="chat-channel-card__muted"
|
||||||
aria-label={{i18n "chat.muted"}}
|
aria-label={{i18n "chat.muted"}}
|
||||||
title={{i18n "chat.muted"}}
|
title={{i18n "chat.muted"}}
|
||||||
>{{dIcon "d-muted"}}</span>
|
>{{icon "d-muted"}}</span>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
</LinkTo>
|
</LinkTo>
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
import Component from "@glimmer/component";
|
import Component from "@glimmer/component";
|
||||||
import dIcon from "discourse/helpers/d-icon";
|
import icon from "discourse/helpers/d-icon";
|
||||||
import { i18n } from "discourse-i18n";
|
import { i18n } from "discourse-i18n";
|
||||||
import {
|
import {
|
||||||
CHANNEL_STATUSES,
|
CHANNEL_STATUSES,
|
||||||
@ -66,7 +66,7 @@ export default class ChatChannelStatus extends Component {
|
|||||||
<template>
|
<template>
|
||||||
{{#if this.shouldRender}}
|
{{#if this.shouldRender}}
|
||||||
<div class="chat-channel-status">
|
<div class="chat-channel-status">
|
||||||
{{dIcon this.channelStatusIcon}}
|
{{icon this.channelStatusIcon}}
|
||||||
<span>{{this.channelStatusMessage}}</span>
|
<span>{{this.channelStatusMessage}}</span>
|
||||||
<ChatChannelArchiveStatus @channel={{@channel}} />
|
<ChatChannelArchiveStatus @channel={{@channel}} />
|
||||||
</div>
|
</div>
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
import { htmlSafe } from "@ember/template";
|
import { htmlSafe } from "@ember/template";
|
||||||
import DButton from "discourse/components/d-button";
|
import DButton from "discourse/components/d-button";
|
||||||
import dIcon from "discourse/helpers/d-icon";
|
import icon from "discourse/helpers/d-icon";
|
||||||
import replaceEmoji from "discourse/helpers/replace-emoji";
|
import replaceEmoji from "discourse/helpers/replace-emoji";
|
||||||
import ChatUserAvatar from "./chat-user-avatar";
|
import ChatUserAvatar from "./chat-user-avatar";
|
||||||
|
|
||||||
@ -11,7 +11,7 @@ const ChatComposerMessageDetails = <template>
|
|||||||
data-action={{if @message.editing "edit" "reply"}}
|
data-action={{if @message.editing "edit" "reply"}}
|
||||||
>
|
>
|
||||||
<div class="chat-reply">
|
<div class="chat-reply">
|
||||||
{{dIcon (if @message.editing "pencil" "reply")}}
|
{{icon (if @message.editing "pencil" "reply")}}
|
||||||
<ChatUserAvatar @user={{@message.user}} />
|
<ChatUserAvatar @user={{@message.user}} />
|
||||||
<span class="chat-reply__username">{{@message.user.username}}</span>
|
<span class="chat-reply__username">{{@message.user.username}}</span>
|
||||||
<span class="chat-reply__excerpt">
|
<span class="chat-reply__excerpt">
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
import Component from "@glimmer/component";
|
import Component from "@glimmer/component";
|
||||||
import DButton from "discourse/components/d-button";
|
import DButton from "discourse/components/d-button";
|
||||||
import concatClass from "discourse/helpers/concat-class";
|
import concatClass from "discourse/helpers/concat-class";
|
||||||
import dIcon from "discourse/helpers/d-icon";
|
import icon from "discourse/helpers/d-icon";
|
||||||
import { isImage } from "discourse/lib/uploads";
|
import { isImage } from "discourse/lib/uploads";
|
||||||
import { i18n } from "discourse-i18n";
|
import { i18n } from "discourse-i18n";
|
||||||
|
|
||||||
@ -32,10 +32,10 @@ export default class ChatComposerUpload extends Component {
|
|||||||
{{#if @isDone}}
|
{{#if @isDone}}
|
||||||
<img class="preview-img" src={{@upload.short_path}} />
|
<img class="preview-img" src={{@upload.short_path}} />
|
||||||
{{else}}
|
{{else}}
|
||||||
{{dIcon "far-image"}}
|
{{icon "far-image"}}
|
||||||
{{/if}}
|
{{/if}}
|
||||||
{{else}}
|
{{else}}
|
||||||
{{dIcon "file-lines"}}
|
{{icon "file-lines"}}
|
||||||
{{/if}}
|
{{/if}}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
import Component from "@glimmer/component";
|
import Component from "@glimmer/component";
|
||||||
import { service } from "@ember/service";
|
import { service } from "@ember/service";
|
||||||
import { htmlSafe } from "@ember/template";
|
import { htmlSafe } from "@ember/template";
|
||||||
import dIcon from "discourse/helpers/d-icon";
|
import icon from "discourse/helpers/d-icon";
|
||||||
import getURL from "discourse/lib/get-url";
|
import getURL from "discourse/lib/get-url";
|
||||||
import I18n, { i18n } from "discourse-i18n";
|
import I18n, { i18n } from "discourse-i18n";
|
||||||
|
|
||||||
@ -151,7 +151,7 @@ export default class ChatMentionWarnings extends Component {
|
|||||||
{{#if this.show}}
|
{{#if this.show}}
|
||||||
<div class="chat-mention-warnings">
|
<div class="chat-mention-warnings">
|
||||||
<div class="chat-mention-warning__icon">
|
<div class="chat-mention-warning__icon">
|
||||||
{{dIcon "triangle-exclamation"}}
|
{{icon "triangle-exclamation"}}
|
||||||
</div>
|
</div>
|
||||||
<div class="chat-mention-warning__text">
|
<div class="chat-mention-warning__text">
|
||||||
<div class="chat-mention-warning__header">
|
<div class="chat-mention-warning__header">
|
||||||
|
@ -2,7 +2,7 @@ import Component from "@glimmer/component";
|
|||||||
import { LinkTo } from "@ember/routing";
|
import { LinkTo } from "@ember/routing";
|
||||||
import { service } from "@ember/service";
|
import { service } from "@ember/service";
|
||||||
import { htmlSafe } from "@ember/template";
|
import { htmlSafe } from "@ember/template";
|
||||||
import dIcon from "discourse/helpers/d-icon";
|
import icon from "discourse/helpers/d-icon";
|
||||||
import replaceEmoji from "discourse/helpers/replace-emoji";
|
import replaceEmoji from "discourse/helpers/replace-emoji";
|
||||||
import ChatEmojiAvatar from "./chat-emoji-avatar";
|
import ChatEmojiAvatar from "./chat-emoji-avatar";
|
||||||
import ChatUserAvatar from "./chat-user-avatar";
|
import ChatUserAvatar from "./chat-user-avatar";
|
||||||
@ -46,7 +46,7 @@ export default class ChatMessageInReplyToIndicator extends Component {
|
|||||||
@models={{this.model}}
|
@models={{this.model}}
|
||||||
class="chat-reply is-direct-reply"
|
class="chat-reply is-direct-reply"
|
||||||
>
|
>
|
||||||
{{dIcon "share" title="chat.in_reply_to"}}
|
{{icon "share" title="chat.in_reply_to"}}
|
||||||
|
|
||||||
{{#if @message.inReplyTo.chatWebhookEvent.emoji}}
|
{{#if @message.inReplyTo.chatWebhookEvent.emoji}}
|
||||||
<ChatEmojiAvatar
|
<ChatEmojiAvatar
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
import dIcon from "discourse/helpers/d-icon";
|
import icon from "discourse/helpers/d-icon";
|
||||||
|
|
||||||
const ChatComposerButton = <template>
|
const ChatComposerButton = <template>
|
||||||
<div class="chat-composer-button__wrapper">
|
<div class="chat-composer-button__wrapper">
|
||||||
<button type="button" class="chat-composer-button" ...attributes>
|
<button type="button" class="chat-composer-button" ...attributes>
|
||||||
{{dIcon @icon}}
|
{{icon @icon}}
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
</template>;
|
</template>;
|
||||||
|
@ -8,7 +8,7 @@ import { and } from "truth-helpers";
|
|||||||
import BookmarkIcon from "discourse/components/bookmark-icon";
|
import BookmarkIcon from "discourse/components/bookmark-icon";
|
||||||
import UserStatusMessage from "discourse/components/user-status-message";
|
import UserStatusMessage from "discourse/components/user-status-message";
|
||||||
import concatClass from "discourse/helpers/concat-class";
|
import concatClass from "discourse/helpers/concat-class";
|
||||||
import dIcon from "discourse/helpers/d-icon";
|
import icon from "discourse/helpers/d-icon";
|
||||||
import { bind } from "discourse/lib/decorators";
|
import { bind } from "discourse/lib/decorators";
|
||||||
import { prioritizeNameInUx } from "discourse/lib/settings";
|
import { prioritizeNameInUx } from "discourse/lib/settings";
|
||||||
import { i18n } from "discourse-i18n";
|
import { i18n } from "discourse-i18n";
|
||||||
@ -156,10 +156,10 @@ export default class ChatMessageInfo extends Component {
|
|||||||
<span class="chat-message-info__flag">
|
<span class="chat-message-info__flag">
|
||||||
{{#if @message.reviewableId}}
|
{{#if @message.reviewableId}}
|
||||||
<LinkTo @route="review.show" @model={{@message.reviewableId}}>
|
<LinkTo @route="review.show" @model={{@message.reviewableId}}>
|
||||||
{{dIcon "flag" title="chat.flagged"}}
|
{{icon "flag" title="chat.flagged"}}
|
||||||
</LinkTo>
|
</LinkTo>
|
||||||
{{else}}
|
{{else}}
|
||||||
{{dIcon "flag" title="chat.you_flagged"}}
|
{{icon "flag" title="chat.you_flagged"}}
|
||||||
{{/if}}
|
{{/if}}
|
||||||
</span>
|
</span>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
@ -4,7 +4,7 @@ import { LinkTo } from "@ember/routing";
|
|||||||
import { service } from "@ember/service";
|
import { service } from "@ember/service";
|
||||||
import { eq } from "truth-helpers";
|
import { eq } from "truth-helpers";
|
||||||
import BookmarkIcon from "discourse/components/bookmark-icon";
|
import BookmarkIcon from "discourse/components/bookmark-icon";
|
||||||
import dIcon from "discourse/helpers/d-icon";
|
import icon from "discourse/helpers/d-icon";
|
||||||
import formatChatDate from "../../../helpers/format-chat-date";
|
import formatChatDate from "../../../helpers/format-chat-date";
|
||||||
|
|
||||||
export default class ChatMessageLeftGutter extends Component {
|
export default class ChatMessageLeftGutter extends Component {
|
||||||
@ -18,11 +18,11 @@ export default class ChatMessageLeftGutter extends Component {
|
|||||||
@model={{@message.reviewableId}}
|
@model={{@message.reviewableId}}
|
||||||
class="chat-message-left-gutter__flag"
|
class="chat-message-left-gutter__flag"
|
||||||
>
|
>
|
||||||
{{dIcon "flag" title="chat.flagged"}}
|
{{icon "flag" title="chat.flagged"}}
|
||||||
</LinkTo>
|
</LinkTo>
|
||||||
{{else if (eq @message.userFlagStatus 0)}}
|
{{else if (eq @message.userFlagStatus 0)}}
|
||||||
<div class="chat-message-left-gutter__flag">
|
<div class="chat-message-left-gutter__flag">
|
||||||
{{dIcon "flag" title="chat.you_flagged"}}
|
{{icon "flag" title="chat.you_flagged"}}
|
||||||
</div>
|
</div>
|
||||||
{{else if this.site.desktopView}}
|
{{else if this.site.desktopView}}
|
||||||
<span class="chat-message-left-gutter__date">
|
<span class="chat-message-left-gutter__date">
|
||||||
|
@ -3,7 +3,7 @@ import { tracked } from "@glimmer/tracking";
|
|||||||
import { on } from "@ember/modifier";
|
import { on } from "@ember/modifier";
|
||||||
import { action } from "@ember/object";
|
import { action } from "@ember/object";
|
||||||
import { service } from "@ember/service";
|
import { service } from "@ember/service";
|
||||||
import dIcon from "discourse/helpers/d-icon";
|
import icon from "discourse/helpers/d-icon";
|
||||||
import { popupAjaxError } from "discourse/lib/ajax-error";
|
import { popupAjaxError } from "discourse/lib/ajax-error";
|
||||||
import { i18n } from "discourse-i18n";
|
import { i18n } from "discourse-i18n";
|
||||||
import laterFn from "../../../modifiers/chat/later-fn";
|
import laterFn from "../../../modifiers/chat/later-fn";
|
||||||
@ -40,7 +40,7 @@ export default class MentionWithoutMembership extends Component {
|
|||||||
class="mention-without-membership-notice__invitation-sent"
|
class="mention-without-membership-notice__invitation-sent"
|
||||||
{{laterFn @clearNotice 3000}}
|
{{laterFn @clearNotice 3000}}
|
||||||
>
|
>
|
||||||
{{dIcon "check"}}
|
{{icon "check"}}
|
||||||
<span>
|
<span>
|
||||||
{{i18n
|
{{i18n
|
||||||
"chat.mention_warning.invitations_sent"
|
"chat.mention_warning.invitations_sent"
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
import DButton from "discourse/components/d-button";
|
import DButton from "discourse/components/d-button";
|
||||||
import concatClass from "discourse/helpers/concat-class";
|
import concatClass from "discourse/helpers/concat-class";
|
||||||
import dIcon from "discourse/helpers/d-icon";
|
import icon from "discourse/helpers/d-icon";
|
||||||
|
|
||||||
const ScrollToBottomArrow = <template>
|
const ScrollToBottomArrow = <template>
|
||||||
<div class="chat-scroll-to-bottom">
|
<div class="chat-scroll-to-bottom">
|
||||||
@ -13,7 +13,7 @@ const ScrollToBottomArrow = <template>
|
|||||||
@action={{@onScrollToBottom}}
|
@action={{@onScrollToBottom}}
|
||||||
>
|
>
|
||||||
<span class="chat-scroll-to-bottom__arrow">
|
<span class="chat-scroll-to-bottom__arrow">
|
||||||
{{dIcon "arrow-down"}}
|
{{icon "arrow-down"}}
|
||||||
</span>
|
</span>
|
||||||
</DButton>
|
</DButton>
|
||||||
</div>
|
</div>
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
import Component from "@glimmer/component";
|
import Component from "@glimmer/component";
|
||||||
import { LinkTo } from "@ember/routing";
|
import { LinkTo } from "@ember/routing";
|
||||||
import dIcon from "discourse/helpers/d-icon";
|
import icon from "discourse/helpers/d-icon";
|
||||||
import { i18n } from "discourse-i18n";
|
import { i18n } from "discourse-i18n";
|
||||||
|
|
||||||
export default class ChatPreferences extends Component {
|
export default class ChatPreferences extends Component {
|
||||||
@ -11,7 +11,7 @@ export default class ChatPreferences extends Component {
|
|||||||
<template>
|
<template>
|
||||||
<li class="user-nav__preferences-chat">
|
<li class="user-nav__preferences-chat">
|
||||||
<LinkTo @route="preferences.chat">
|
<LinkTo @route="preferences.chat">
|
||||||
{{dIcon "d-chat"}}
|
{{icon "d-chat"}}
|
||||||
<span>{{i18n "chat.title_capitalized"}}</span>
|
<span>{{i18n "chat.title_capitalized"}}</span>
|
||||||
</LinkTo>
|
</LinkTo>
|
||||||
</li>
|
</li>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user