-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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 #7194 Editor errors on Visualize are broken #7702
Merged
Merged
Changes from 4 commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
c7e89a9
fix #7194 Editor errors on Visualize are broken
ppisljar be4a47f
- fixing styles to reduce specificity
ppisljar d019a5e
- adding comment
ppisljar 5a91329
updating to follow new html style guide
ppisljar 7c47e13
updating style
ppisljar 380aafc
fixing typos
ppisljar File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,10 @@ | ||
<div class="sidebar-container"> | ||
<form class="sidebar-list" | ||
ng-submit="visualizeEditor.$invalid ? dontApply() : stageEditableVis()" | ||
name="visualizeEditor" | ||
novalidate><!-- see http://goo.gl/9kgz5w --> | ||
<form | ||
class="sidebar-list" | ||
ng-submit="visualizeEditor.$invalid ? dontApply() : stageEditableVis()" | ||
name="visualizeEditor" | ||
novalidate | ||
><!-- see http://goo.gl/9kgz5w --> | ||
|
||
<div css-truncate title="{{indexPattern.id}}" ng-if="vis.type.requiresSearch" class="index-pattern"> | ||
{{ indexPattern.id }} | ||
|
@@ -14,31 +16,53 @@ | |
<!-- tabs --> | ||
<ul class="nav navbar-nav"> | ||
<li ng-class="{active: sidebar.section == 'data'}" ng-show="sidebar.showData"> | ||
<a class="navbar-link active" ng-click="sidebar.section='data'">Data</a> | ||
<a | ||
class="vis-editor-subnav-link" | ||
g-class="{'is-vis-editor-sub-nav-link-selected': sidebar.section == 'data'}" | ||
g-click="sidebar.section='data'" | ||
>Data</a> | ||
</li> | ||
<li ng-class="{active: sidebar.section == 'options'}"> | ||
<a class="navbar-link" ng-click="sidebar.section='options'">Options</a> | ||
<a | ||
class="vis-editor-subnav-link" | ||
g-class="{'is-vis-editor-sub-nav-link-selected': sidebar.section == 'options'}" | ||
g-click="sidebar.section='options'" | ||
>Options</a> | ||
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. Same here. 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. Same typos here. |
||
</li> | ||
</ul> | ||
|
||
<!-- controls --> | ||
<ul class="nav navbar-nav navbar-right"> | ||
<li ng-if="visualizeEditor.softErrorCount() > 0" | ||
<li | ||
ng-if="visualizeEditor.softErrorCount() > 0" | ||
disabled | ||
tooltip="{{ visualizeEditor.describeErrors() }}" tooltip-placement="bottom" tooltip-popup-delay="400" tooltip-append-to-body="1"> | ||
<a class="danger navbar-link"> | ||
tooltip="{{ visualizeEditor.describeErrors() }}" | ||
tooltip-placement="bottom" | ||
tooltip-popup-delay="400" | ||
tooltip-append-to-body="1" | ||
> | ||
<a class="vis-editor-subnav-link vis-editor-subnav-link--danger"> | ||
<i class="fa fa-warning"></i> | ||
</a> | ||
</li> | ||
<li tooltip="Apply changes" tooltip-placement="bottom" tooltip-popup-delay="400" tooltip-append-to-body="1"> | ||
<li | ||
tooltip="Apply changes" | ||
tooltip-placement="bottom" | ||
tooltip-popup-delay="400" tooltip-append-to-body="1" | ||
> | ||
<button class="btn-success navbar-btn-link" | ||
type="submit" | ||
ng-disabled="!vis.dirty"> | ||
|
||
<i class="fa fa-play"></i> | ||
</button> | ||
</li> | ||
<li tooltip="Discard changes" tooltip-placement="bottom" tooltip-popup-delay="400" tooltip-append-to-body="1"> | ||
<li | ||
tooltip="Discard changes" | ||
tooltip-placement="bottom" | ||
tooltip-popup-delay="400" | ||
tooltip-append-to-body="1" | ||
> | ||
<button class="btn-default navbar-btn-link" | ||
ng-disabled="!vis.dirty" | ||
ng-click="resetEditableVis()"> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
I think this will be more maintainable if we separate the opening and closing tags from the content:
I think this consistency will let us change the content, e.g. adding more text, adding new elements, without having to add and remove new lines depending on how much content there is. What do you think?
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.
i agree
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.
Oh wait, I found a couple typos here... on lines 21 and 22, it looks like ng-class and ng-click got turned into g-class and g-click.