UX: update emoji, better icon match (#122)
This commit is contained in:
parent
82bf4e797c
commit
5d248b8843
|
@ -8,11 +8,11 @@
|
||||||
<img
|
<img
|
||||||
src={{this.emojiUrl}}
|
src={{this.emojiUrl}}
|
||||||
title={{this.userNotesTitle}}
|
title={{this.userNotesTitle}}
|
||||||
alt="pencil"
|
alt=""
|
||||||
class="emoji"
|
class="emoji"
|
||||||
/>
|
/>
|
||||||
{{else}}
|
{{else}}
|
||||||
{{d-icon "note-sticky"}}
|
{{d-icon "pen-to-square"}}
|
||||||
{{/if}}
|
{{/if}}
|
||||||
</DButton>
|
</DButton>
|
||||||
{{/if}}
|
{{/if}}
|
|
@ -15,7 +15,7 @@ export default {
|
||||||
component.setProperties({
|
component.setProperties({
|
||||||
userNotesCount,
|
userNotesCount,
|
||||||
emojiEnabled: component.siteSettings.enable_emoji,
|
emojiEnabled: component.siteSettings.enable_emoji,
|
||||||
emojiUrl: emojiUrlFor("pencil"),
|
emojiUrl: emojiUrlFor("memo"),
|
||||||
userNotesTitle: i18n("user_notes.show", { count: userNotesCount }),
|
userNotesTitle: i18n("user_notes.show", { count: userNotesCount }),
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
|
@ -43,9 +43,9 @@ export default class extends Component {
|
||||||
class="btn-flat"
|
class="btn-flat"
|
||||||
>
|
>
|
||||||
{{#if this.siteSettings.enable_emoji}}
|
{{#if this.siteSettings.enable_emoji}}
|
||||||
{{emoji "pencil"}}
|
{{emoji "memo"}}
|
||||||
{{else}}
|
{{else}}
|
||||||
{{icon "note-sticky"}}
|
{{icon "pen-to-square"}}
|
||||||
{{/if}}
|
{{/if}}
|
||||||
</DButton>
|
</DButton>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
<DButton
|
<DButton
|
||||||
class="btn-default show-user-notes-btn"
|
class="btn-default show-user-notes-btn"
|
||||||
@action={{@show}}
|
@action={{@show}}
|
||||||
@icon="pencil"
|
@icon="pen-to-square"
|
||||||
@translatedLabel={{this.label}}
|
@translatedLabel={{this.label}}
|
||||||
/>
|
/>
|
|
@ -70,7 +70,7 @@ export default {
|
||||||
});
|
});
|
||||||
api.addPostAdminMenuButton((attrs) => {
|
api.addPostAdminMenuButton((attrs) => {
|
||||||
return {
|
return {
|
||||||
icon: "pencil",
|
icon: "pen-to-square",
|
||||||
label: "user_notes.attach",
|
label: "user_notes.attach",
|
||||||
action: (post) => {
|
action: (post) => {
|
||||||
showUserNotes(
|
showUserNotes(
|
||||||
|
@ -103,9 +103,9 @@ export default {
|
||||||
|
|
||||||
html() {
|
html() {
|
||||||
if (this.siteSettings.enable_emoji) {
|
if (this.siteSettings.enable_emoji) {
|
||||||
return this.attach("emoji", { name: "pencil" });
|
return this.attach("emoji", { name: "memo" });
|
||||||
} else {
|
} else {
|
||||||
return iconNode("note-sticky");
|
return iconNode("pen-to-square");
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
|
@ -11,7 +11,7 @@ enabled_site_setting :user_notes_enabled
|
||||||
|
|
||||||
register_asset "stylesheets/user_notes.scss"
|
register_asset "stylesheets/user_notes.scss"
|
||||||
|
|
||||||
register_svg_icon "note-sticky"
|
register_svg_icon "pen-to-square"
|
||||||
|
|
||||||
after_initialize do
|
after_initialize do
|
||||||
require_dependency "user"
|
require_dependency "user"
|
||||||
|
|
Loading…
Reference in New Issue