-
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
Save/rename flow fix #9087
Merged
stacey-gammon
merged 9 commits into
elastic:master
from
stacey-gammon:saved_object_refactor
Dec 2, 2016
Merged
Save/rename flow fix #9087
Changes from 7 commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
faf3e9c
Save/rename flow fix
stacey-gammon 08b0e92
use undefined instead of null
stacey-gammon b7b6e0a
Change titleChanged function name
stacey-gammon 07901bd
Merge branch 'master' of https://github.com/elastic/kibana into saved…
stacey-gammon 41441bf
address code review comments
stacey-gammon e3ff0ad
Merge branch 'master' of https://github.com/elastic/kibana into saved…
stacey-gammon cf04dde
Add isSaving flag to avoid checkbox flicker, fix regression bug from …
stacey-gammon 9686b2a
Update doc and nav title with new name on rename
stacey-gammon cb6f918
Merge branch 'master' of https://github.com/elastic/kibana into saved…
stacey-gammon 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
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 |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
role="form" | ||
ng-submit="opts.save()" | ||
> | ||
<div class="localDropdownTitle">Save Dashboard</div> | ||
<div class="localDropdownTitle">Save {{opts.dashboard.getDisplayName()}}</div> | ||
<input | ||
class="localDropdownInput" | ||
id="dashboardTitle" | ||
|
@@ -11,12 +11,18 @@ | |
placeholder="Dashboard title" | ||
input-focus="select" | ||
> | ||
|
||
<saved-object-save-as-check-box saved-object="opts.dashboard"></saved-object-save-as-check-box> | ||
|
||
<div class="form-group"> | ||
<label> | ||
<input type="checkbox" ng-model="opts.dashboard.timeRestore" ng-checked="opts.dashboard.timeRestore"> | ||
Store time with dashboard | ||
<kbn-info info="Change the time filter to the currently selected time each time this dashboard is loaded"></kbn-info> | ||
Store time with {{opts.dashboard.getDisplayName()}} | ||
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. |
||
<kbn-info placement="bottom" info="Change the time filter to the currently selected time each time this dashboard is loaded"></kbn-info> | ||
</label> | ||
</div> | ||
<button type="submit" ng-disabled="!opts.dashboard.title" class="btn btn-primary" aria-label="Save dashboard">Save</button> | ||
|
||
<button type="submit" ng-disabled="!opts.dashboard.title" class="btn btn-primary" aria-label="Save dashboard"> | ||
Save | ||
</button> | ||
</form> |
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
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
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
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
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
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
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
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
Oops, something went wrong.
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'm seeing a slight flicker when saving a Dashboard (or other object) for the first time. You can see the "Save as a new dashboard" checkbox flicker for a moment before the dropdown is closed:
I think we just need to add a "isSaving" flag to the inherited scope. It will default to false, we can set it to true while the save request is being sent, and then back to false once the response is received.
Then we can pass it to the
savedObjectSaveAsCheckBox
directive:The directive can then hide itself when
isSave
is true: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.
Ah, nice catch! I opted to throw the variable into savedObject so I wouldn't have to add that input parameter to every user of the check box.