Skip to content
Snippets Groups Projects

Resolve "Show canary / no-canary in the performance bar"

Merged Sean McGivern requested to merge 52421-show-canary-no-canary-in-the-performance-bar into master
All threads resolved!
5 files
+ 28
2
Compare changes
  • Side-by-side
  • Inline
Files
5
<script>
import $ from 'jquery';
import { glEmojiTag } from '~/emoji';
import detailedMetric from './detailed_metric.vue';
import requestSelector from './request_selector.vue';
@@ -64,6 +65,16 @@ export default {
lineProfileModal() {
return $('#modal-peek-line-profile');
},
hasHost() {
return this.currentRequest && this.currentRequest.details && this.currentRequest.details.host;
},
birdEmoji() {
if (this.hasHost && this.currentRequest.details.host.canary) {
return glEmojiTag('bird');
}
return '';
},
},
mounted() {
this.currentRequest = this.requestId;
@@ -93,9 +104,11 @@ export default {
class="view"
>
<span
v-if="currentRequest.details"
v-if="hasHost"
class="current-host"
:class="{ 'canary' : currentRequest.details.host.canary }"
>
<span v-html="birdEmoji"></span>
{{ currentRequest.details.host.hostname }}
</span>
</div>
Loading