chore: replace icons, change errors

This commit is contained in:
Mar0xy 2023-11-23 19:22:34 +01:00
parent 42bf8e5e76
commit 04dbf7ebe9
No known key found for this signature in database
GPG key ID: 56569BBE47D2C828
4 changed files with 4 additions and 4 deletions

View file

@ -283,7 +283,7 @@ export default class extends Endpoint<typeof meta, typeof paramDef> { // eslint-
} else if (isPureRenote(reply)) { } else if (isPureRenote(reply)) {
throw new ApiError(meta.errors.cannotReplyToPureRenote); throw new ApiError(meta.errors.cannotReplyToPureRenote);
} else if (!await this.noteEntityService.isVisibleForMe(reply, me.id)) { } else if (!await this.noteEntityService.isVisibleForMe(reply, me.id)) {
throw new ApiError(meta.errors.cannotReplyToInvisibleNote); throw new ApiError(meta.errors.noSuchReplyTarget);
} }
// Check blocking // Check blocking

View file

@ -258,7 +258,7 @@ export default function(props: MfmProps) {
style: 'display: inline-block; font-size: 90%; border: solid 1px var(--divider); border-radius: 999px; padding: 4px 10px 4px 6px;', style: 'display: inline-block; font-size: 90%; border: solid 1px var(--divider); border-radius: 999px; padding: 4px 10px 4px 6px;',
}, [ }, [
h('i', { h('i', {
class: 'ti ti-clock', class: 'ph-clock ph-bold ph-lg',
style: 'margin-right: 0.25em;', style: 'margin-right: 0.25em;',
}), }),
h(MkTime, { h(MkTime, {

View file

@ -302,7 +302,7 @@ function lookup(ev: MouseEvent) {
}, },
}, { }, {
text: `${i18n.ts.user} (${i18n.ts.email})`, text: `${i18n.ts.user} (${i18n.ts.email})`,
icon: 'ti ti-user', icon: 'ph-user ph-bold ph-lg',
action: () => { action: () => {
lookupUserByEmail(); lookupUserByEmail();
}, },

View file

@ -186,7 +186,7 @@ function getMenu() {
if (props.refresher) { if (props.refresher) {
items = [{ items = [{
icon: 'ti ti-refresh', icon: 'ph-arrows-counter-clockwise ph-bold ph-lg',
text: i18n.ts.reload, text: i18n.ts.reload,
action: () => { action: () => {
if (props.refresher) { if (props.refresher) {