Skip to content
This repository has been archived by the owner on Jun 18, 2024. It is now read-only.

Commit

Permalink
Disabled panelid when the pagination is not enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
JoaquinJimenezGarcia committed Mar 22, 2020
1 parent 4e17eac commit cbce4e9
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 6 deletions.
1 change: 0 additions & 1 deletion dist/color_mode_discrete.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/color_mode_discrete.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/partials/options_editor.html
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ <h5 class="section-heading">Display</h5>
checked="ctrl.panel.usingPagination" on-change="ctrl.paginate()">
</gf-form-switch>
<div class="gf-form" ng-if="ctrl.panel.usingPagination">
<label class="gf-form-label width-8">Panel ID</label>
<label ng-disabled="!ctrl.panel.usingPagination" class="gf-form-label width-8">Panel ID</label>
<input type="text" ng-model="ctrl.panel.panelId" class="gf-form-input width-5" placeholder="testPanel" data-placement="right" bs-tooltip="'Identifier'" ng-change="ctrl.refresh()" ng-model-onblur>
</div>
<div class="gf-form">
Expand Down
2 changes: 0 additions & 2 deletions src/color_mode_discrete.ts
Original file line number Diff line number Diff line change
Expand Up @@ -167,8 +167,6 @@ export class ColorModeDiscrete {
}
this.panelCtrl.bucketMatrix.noColorDefined = false;

console.log('color_mode_discrete, pdateCardsValuesHasColorInfoSingle', this.panelCtrl.bucketMatrix.targets);

this.panelCtrl.bucketMatrix.targets.map((target:string) => {
this.panelCtrl.bucketMatrix.buckets[target].map((bucket:Bucket) => {
bucket.noColorDefined = false;
Expand Down
2 changes: 1 addition & 1 deletion src/partials/options_editor.html
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ <h5 class="section-heading">Display</h5>
checked="ctrl.panel.usingPagination" on-change="ctrl.paginate()">
</gf-form-switch>
<div class="gf-form" ng-if="ctrl.panel.usingPagination">
<label class="gf-form-label width-8">Panel ID</label>
<label ng-disabled="!ctrl.panel.usingPagination" class="gf-form-label width-8">Panel ID</label>
<input type="text" ng-model="ctrl.panel.panelId" class="gf-form-input width-5" placeholder="testPanel" data-placement="right" bs-tooltip="'Identifier'" ng-change="ctrl.refresh()" ng-model-onblur>
</div>
<div class="gf-form">
Expand Down

0 comments on commit cbce4e9

Please sign in to comment.