diff --git a/CHANGELOG.md b/CHANGELOG.md index e034c4e553d3c3227379a46c3793c2d794161dae..a14ede7be68f476ad6c72e84122f81d26644d748 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -24,6 +24,7 @@ - アカウントデータã®ã‚¨ã‚¯ã‚¹ãƒãƒ¼ãƒˆ/インãƒãƒ¼ãƒˆå‡¦ç†ãŒã§ããªã„å•é¡Œã‚’ä¿®æ£ - アンテナã®æ—¢èªãŒä»˜ã‹ãªã„å•é¡Œã‚’ä¿®æ£ - popupã§è¨å®šãƒšãƒ¼ã‚¸ã‚’表示ã™ã‚‹ã¨ã€ã‚¢ã‚«ã‚¦ãƒ³ãƒˆã®å‰Šé™¤ãƒšãƒ¼ã‚¸ã«ã‚¢ã‚¯ã‚»ã‚¹ã™ã‚‹ã“ã¨ãŒã§ããªã„å•é¡Œã‚’ä¿®æ£ +- "å•é¡ŒãŒç™ºç”Ÿã—ã¾ã—ãŸ"ウィンドウを開ãã¨â˜“ボタンãŒãªãã¦é–‰ã˜ã‚Œãªã„å•é¡Œã‚’ä¿®æ£ ## 12.90.1 (2021/09/05) diff --git a/src/client/ui/_common_/header.vue b/src/client/ui/_common_/header.vue index eb8a1b9c0ac12a3ec75043e5b50aa985a8bf1a8b..1e0db9a3a11dbc4b9d66a6de0042aa1066a2a197 100644 --- a/src/client/ui/_common_/header.vue +++ b/src/client/ui/_common_/header.vue @@ -28,14 +28,14 @@ <span v-if="!tab.iconOnly" class="title">{{ tab.title }}</span> </button> </div> - <div class="buttons right"> - <template v-if="info.actions && !narrow"> - <button v-for="action in info.actions" class="_button button" :class="{ highlighted: action.highlighted }" @click.stop="action.handler" @touchstart="preventDrag" v-tooltip="action.text"><i :class="action.icon"></i></button> - </template> - <button v-if="shouldShowMenu" class="_button button" @click.stop="showMenu" @touchstart="preventDrag" v-tooltip="$ts.menu"><i class="fas fa-ellipsis-h"></i></button> - <button v-if="closeButton" class="_button button" @click.stop="$emit('close')" @touchstart="preventDrag" v-tooltip="$ts.close"><i class="fas fa-times"></i></button> - </div> </template> + <div class="buttons right"> + <template v-if="info && info.actions && !narrow"> + <button v-for="action in info.actions" class="_button button" :class="{ highlighted: action.highlighted }" @click.stop="action.handler" @touchstart="preventDrag" v-tooltip="action.text"><i :class="action.icon"></i></button> + </template> + <button v-if="shouldShowMenu" class="_button button" @click.stop="showMenu" @touchstart="preventDrag" v-tooltip="$ts.menu"><i class="fas fa-ellipsis-h"></i></button> + <button v-if="closeButton" class="_button button" @click.stop="$emit('close')" @touchstart="preventDrag" v-tooltip="$ts.close"><i class="fas fa-times"></i></button> + </div> </div> </template> @@ -83,6 +83,7 @@ export default defineComponent({ }, shouldShowMenu() { + if (this.info == null) return false; if (this.info.actions != null && this.narrow) return true; if (this.info.menu != null) return true; if (this.info.share != null) return true;