-
Notifications
You must be signed in to change notification settings - Fork 629
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix multiple scalar issues: #283
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ | |
<ui-image | ||
class="visual-dl-chart-image" | ||
v-for="tagInfo in filteredPageList" | ||
:key="tagInfo.run + tagInfo.tag.displayName" | ||
:key="tagInfo.tag" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We should avoid using non-primitive value as the key. |
||
:tagInfo="tagInfo" | ||
:isActualImageSize="config.isActualImageSize" | ||
:runs="config.runs" | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,8 +4,8 @@ | |
<div ref="chartPageBox" class="visual-dl-chart-page-box"> | ||
<ui-chart | ||
v-for="tagInfo in filteredTagList" | ||
:key="tagInfo.tag" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We should avoid using non-primitive value as the key. |
||
:tagInfo="tagInfo" | ||
:key="tagInfo.run + tagInfo.tag.displayName" | ||
:groupNameReg="config.groupNameReg" | ||
:smoothing="config.smoothing" | ||
:horizontal="config.horizontal" | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,8 +7,14 @@ | |
dark | ||
></v-text-field> | ||
|
||
<div> | ||
<v-slider label="Smoothing" :max="0.999" :min="0" :step="0.001" v-model="config.smoothing" dark></v-slider> | ||
<div class="visual-dl-page-slider-block"> | ||
<v-slider label="Smoothing" | ||
:max="0.999" | ||
:min="0" | ||
:step="0.001" | ||
v-model="config.smoothing" | ||
class="visual-dl-page-smoothing-slider" | ||
dark></v-slider> | ||
<span>{{config.smoothing}}</span> | ||
</div> | ||
|
||
|
@@ -18,31 +24,32 @@ | |
<v-radio label="Wall" value="wall"></v-radio> | ||
</v-radio-group> | ||
|
||
<label class="label">Tooltip sorting method</label> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We need to display this Label. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. v-selector has this label embedded There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think we need to null the v-model in order for the label to show up then. |
||
<v-select | ||
:items="sortingMethodItems" | ||
v-model="config.sortingMethod" | ||
label="Tooltip sorting method" | ||
single-line | ||
bottom | ||
dark | ||
></v-select> | ||
|
||
<v-checkbox label="Show data download links" v-model="config.downloadLink" dark></v-checkbox> | ||
<v-checkbox label="Ignore outliers in chart scaling" v-model="config.outlier" dark></v-checkbox> | ||
|
||
<label>Runs</label> | ||
|
||
<v-checkbox v-for="item in runsItems" | ||
:key="item.name" | ||
:label="item.name" | ||
:value="item.value" | ||
v-model="config.runs" | ||
dark | ||
class="visual-dl-page-config-checkbox" | ||
></v-checkbox> | ||
|
||
<v-btn :color="config.running ? 'primary' : 'error'" | ||
v-model="config.running" | ||
@click="toggleAllRuns" | ||
dark | ||
class="visual-dl-page-run-toggle" | ||
dark block | ||
> | ||
{{config.running ? 'Running' : 'Stopped'}} | ||
</v-btn> | ||
|
@@ -100,10 +107,13 @@ export default { | |
+prefix-classes('visual-dl-page-') | ||
.config-com | ||
width 90% | ||
margin 20px auto | ||
padding 20px | ||
.slider-block | ||
display flex | ||
align-items center | ||
.smoothing-slider | ||
display inline | ||
.run-toggle | ||
width 100% | ||
margin-top 20px | ||
</style> | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should avoid using non-primitive value as the key. Vue will complain this.
Let's just use Varun's index suggestion.