Skip to content

Commit

Permalink
サーバー情報で公式タグを開いてもページタイトルを更新しない (#527)
Browse files Browse the repository at this point in the history
  • Loading branch information
kozakura913 authored Nov 3, 2024
1 parent a0e4798 commit 8447999
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 5 deletions.
1 change: 1 addition & 0 deletions CHANGELOG_YOJO.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ Cherrypick 4.11.1
- Fix: ユーザー概要の「ファイル」の挙動を通常の添付ファイルに合わせる [#472](https://github.com/yojo-art/cherrypick/pull/472)
- Fix: チャットの絵文字ピッカーが正しく入力できないことがあるのを修正
- Enhance: 非ログイン時に動きのあるMFMを動かすか選べるように
- Fix: サーバー情報画面で公式タグを選択するとヘッダが公式タグのままになる不具合を修正 [#527](https://github.com/yojo-art/cherrypick/pull/527)

### Server
- Enhance: リモートユーザーの`/api/clips/show``/api/users/clips`の応答にemojisを追加 [#466](https://github.com/yojo-art/cherrypick/pull/466)
Expand Down
2 changes: 1 addition & 1 deletion packages/frontend/src/pages/about.vue
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ SPDX-License-Identifier: AGPL-3.0-only
<MkInstanceStats/>
</MkSpacer>
<MkSpacer v-else-if="tab === 'officialTags'" :contentMax="1000" :marginMin="20">
<XOfficialTag :showHeader="false"/>
<XOfficialTag :showHeader="false" :setTitle="false"/>
</MkSpacer>
</MkHorizontalSwipe>
</MkStickyContainer>
Expand Down
12 changes: 8 additions & 4 deletions packages/frontend/src/pages/official-tags.vue
Original file line number Diff line number Diff line change
Expand Up @@ -24,18 +24,22 @@ import { misskeyApi } from '@/scripts/misskey-api.js';

const props = withDefaults(defineProps<{
showHeader?: boolean;
setTitle?: boolean;
}>(), {
showHeader: true,
setTitle: true,
});

const official_tags = ref<Misskey.entities.OfficialTagsShowResponse>([]);
(async () => {
official_tags.value = await misskeyApi('official-tags/show', {});
})();

definePageMetadata(() => ({
title: i18n.ts._official_tag.title,
icon: 'ti ti-bookmarks',
}));
if (props.setTitle) {
definePageMetadata(() => ({
title: i18n.ts._official_tag.title,
icon: 'ti ti-bookmarks',
}));
}
</script>

0 comments on commit 8447999

Please sign in to comment.