installer.js 2.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  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. var App = require('app');
  19. App.InstallerView = Em.View.extend({
  20. templateName: require('templates/installer'),
  21. isStep0Disabled: function () {
  22. return this.get('controller.isStepDisabled').findProperty('step',0).get('value');
  23. }.property('controller.isStepDisabled.@each.value').cacheable(),
  24. isStep1Disabled: function () {
  25. return this.get('controller.isStepDisabled').findProperty('step',1).get('value');
  26. }.property('controller.isStepDisabled.@each.value').cacheable(),
  27. isStep2Disabled: function () {
  28. return this.get('controller.isStepDisabled').findProperty('step',2).get('value');
  29. }.property('controller.isStepDisabled.@each.value').cacheable(),
  30. isStep3Disabled: function () {
  31. return this.get('controller.isStepDisabled').findProperty('step',3).get('value');
  32. }.property('controller.isStepDisabled.@each.value').cacheable(),
  33. isStep4Disabled: function () {
  34. return this.get('controller.isStepDisabled').findProperty('step',4).get('value');
  35. }.property('controller.isStepDisabled.@each.value').cacheable(),
  36. isStep5Disabled: function () {
  37. return this.get('controller.isStepDisabled').findProperty('step',5).get('value');
  38. }.property('controller.isStepDisabled.@each.value').cacheable(),
  39. isStep6Disabled: function () {
  40. return this.get('controller.isStepDisabled').findProperty('step',6).get('value');
  41. }.property('controller.isStepDisabled.@each.value').cacheable(),
  42. isStep7Disabled: function () {
  43. return this.get('controller.isStepDisabled').findProperty('step',7).get('value');
  44. }.property('controller.isStepDisabled.@each.value').cacheable(),
  45. isStep8Disabled: function () {
  46. return this.get('controller.isStepDisabled').findProperty('step',8).get('value');
  47. }.property('controller.isStepDisabled.@each.value').cacheable(),
  48. isStep9Disabled: function () {
  49. return this.get('controller.isStepDisabled').findProperty('step',9).get('value');
  50. }.property('controller.isStepDisabled.@each.value').cacheable(),
  51. isStep10Disabled: function () {
  52. return this.get('controller.isStepDisabled').findProperty('step',10).get('value');
  53. }.property('controller.isStepDisabled.@each.value').cacheable()
  54. });