highAvailability.hbs 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. {{!
  2. * Licensed to the Apache Software Foundation (ASF) under one
  3. * or more contributor license agreements. See the NOTICE file
  4. * distributed with this work for additional information
  5. * regarding copyright ownership. The ASF licenses this file
  6. * to you under the Apache License, Version 2.0 (the
  7. * "License"); you may not use this file except in compliance
  8. * with the License. You may obtain a copy of the License at
  9. *
  10. * http://www.apache.org/licenses/LICENSE-2.0
  11. *
  12. * Unless required by applicable law or agreed to in writing, software
  13. * distributed under the License is distributed on an "AS IS" BASIS,
  14. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  15. * See the License for the specific language governing permissions and
  16. * limitations under the License.
  17. }}
  18. <div>
  19. {{#if App.isHaEnabled}}
  20. {{#if App.supports.autoRollbackHA}}
  21. <p class="text-success">
  22. {{t admin.highAvailability.enabled}}
  23. <a class="btn btn-padding btn-success" {{action disableHighAvailability target="controller"}}>{{t admin.highAvailability.button.disable}}</a>
  24. </p>
  25. {{else}}
  26. <p class="text-success">
  27. {{t admin.highAvailability.enabled}}
  28. </p>
  29. {{/if}}
  30. {{else}}
  31. {{#if controller.dataIsLoaded}}
  32. <p class="muted">
  33. {{t admin.highAvailability.disabled}}
  34. </p>
  35. <a class="btn btn-padding btn-success ha-btn" {{action enableHighAvailability target="controller"}}>{{t admin.highAvailability.button.enable}}</a>
  36. {{else}}
  37. <div class="spinner"></div>
  38. {{/if}}
  39. {{/if}}
  40. {{#if App.supports.resourceManagerHighAvailability}}
  41. {{#if App.isRMHaEnabled}}
  42. <div class="rm-ha">
  43. <p class="text-success">
  44. {{t admin.rm_highAvailability.enabled}}
  45. </p>
  46. {{else}}
  47. <p class="muted">
  48. {{t admin.rm_highAvailability.disabled}}
  49. </p>
  50. <a class="btn btn-padding btn-success ha-btn" {{action enableRMHighAvailability target="controller"}}>{{t admin.rm_highAvailability.button.enable}}</a>
  51. {{/if}}
  52. </div>
  53. {{/if}}
  54. </div>