-
Notifications
You must be signed in to change notification settings - Fork 1.7k
[AMBARI-22804] Install Wizard final deployment of services from multiple mpacks #199
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
Changes from all commits
55a6508
053ee22
e9d71b6
6c25530
b587381
c80d437
1f0da9c
e415b97
ee65609
cdcd8a2
83fdff8
cc734cc
4a64a5e
3af294b
dbeb8f1
2cffe9e
4a231be
6b9fc3d
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 |
|---|---|---|
|
|
@@ -39,10 +39,8 @@ | |
| <td class="col-sm-6">{{mpack.displayName}} {{mpack.version}}</td> | ||
| <td class="download-status col-sm-4"> | ||
| {{#if mpack.inProgress}} | ||
| <div class="progress-wrapper"> | ||
| <div class="progress"> | ||
| <div class="active progress-bar-striped progress-bar"}}></div> | ||
| </div> | ||
| <div class="progress"> | ||
| <div class="active progress-bar-striped progress-bar"></div> | ||
| </div> | ||
| {{else}} | ||
| {{#if mpack.succeeded}} | ||
|
|
@@ -56,7 +54,11 @@ | |
| </td> | ||
| <td class="col-sm-2"> | ||
| <span data-toggle="tooltip" data-placement="bottom" {{translateAttr title="common.retry"}}> | ||
| <button type="button" class="icon-button retry-button" {{bindAttr disabled="mpack.succeeded"}} {{action retryDownload mpack target="controller"}}></button> | ||
| {{#if mpack.failed}} | ||
| <button type="button" class="icon-button retry-button" {{action retryDownload mpack target="controller"}}></button> | ||
| {{else}} | ||
| <button type="button" class="icon-button retry-button" disabled="disabled"></button> | ||
| {{/if}} | ||
| </span> | ||
|
Contributor
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. IMO we can directly bind it and use bootstrap classes instead.
Contributor
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. mpack.failed:disabled would have inverted the logic. mpack.failed::disabled disables it when mpack.failed is false. So as long as the value of mpack.failed is false (or null) the button would remain disabled, doesn't matter it is in-progress or it succeeds. Your if else code above is also doing the exact same thing
Author
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 tried this suggestion and a couple other options, including binding the disabled attribute directly, but the results were not satisfactory. It looks like in this specific situation, the existing code is a satisfactory solution, if not the most elegant. |
||
| </td> | ||
| </tr> | ||
|
|
||
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.
On narrow screen wizard-body will jump to bottom, better to leave previous styles
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.
No, my changes ensure that the wizard-body stays where it should even if the screen is very narrow (although hopefully nobody is using Ambari on that small of a screen, since the UI is really not designed for it).