Merge "If only one trace is run, do not display navigation options for timeline."

This commit is contained in:
TreeHugger Robot
2021-07-20 15:29:56 +00:00
committed by Android (Google) Code Review

View File

@@ -81,8 +81,9 @@
</div>
<md-field
v-if="multipleTraces"
ref="navigationTypeSelection"
class="nagivation-style-selection-field"
class="navigation-style-selection-field"
>
<label>Navigation</label>
@@ -377,7 +378,7 @@ export default {
default:
const split = this.navigationStyle.split('-');
if (split[0] !== NAVIGATION_STYLE.TARGETED) {
throw new Error('Unexpected nagivation type');
throw new Error('Unexpected navigation type');
}
const fileType = split[1];
@@ -399,7 +400,7 @@ export default {
default:
const split = this.navigationStyle.split('-');
if (split[0] !== NAVIGATION_STYLE.TARGETED) {
throw new Error('Unexpected nagivation type');
throw new Error('Unexpected navigation type');
}
const fileType = split[1];
@@ -430,12 +431,15 @@ export default {
.traces[this.navigationStyle.split('-')[1]];
}
throw new Error('Unexpected Nagivation Style');
throw new Error('Unexpected Navigation Style');
},
isCropped() {
return this.crop != null &&
(this.crop.left !== 0 || this.crop.right !== 1);
},
multipleTraces() {
return this.timelineFiles.length > 1;
},
},
updated() {
this.$nextTick(() => {
@@ -594,7 +598,7 @@ export default {
default:
const split = this.navigationStyle.split('-');
if (split[0] !== NAVIGATION_STYLE.TARGETED) {
throw new Error('Unexpected nagivation type');
throw new Error('Unexpected navigation type');
}
const fileType = split[1];
@@ -821,7 +825,7 @@ export default {
margin-top: 4px;
}
.nagivation-style-selection-field {
.navigation-style-selection-field {
width: 90px;
margin-right: 10px;
margin-bottom: 0;