This is an automated email from the ASF dual-hosted git repository.
jialiang pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/ambari.git
The following commit(s) were added to refs/heads/trunk by this push:
new 55c2ba1ac8 AMBARI-26252: Service autostart checkbox display issue #3965
55c2ba1ac8 is described below
commit 55c2ba1ac8fa88ebef74109a7033648190237768
Author: zrain <[email protected]>
AuthorDate: Mon Mar 24 13:53:37 2025 +0800
AMBARI-26252: Service autostart checkbox display issue #3965
---
ambari-web/vendor/scripts/ember-latest.js | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/ambari-web/vendor/scripts/ember-latest.js
b/ambari-web/vendor/scripts/ember-latest.js
index 251e9f89e0..c9bb454009 100644
--- a/ambari-web/vendor/scripts/ember-latest.js
+++ b/ambari-web/vendor/scripts/ember-latest.js
@@ -19927,6 +19927,7 @@ Ember.Checkbox = Ember.View.extend({
init: function() {
this._super();
this.on("change", this, this._updateElementValue);
+ this.addObserver('checked', this, 'checkedChanged');
},
/**
@@ -19934,6 +19935,15 @@ Ember.Checkbox = Ember.View.extend({
*/
_updateElementValue: function() {
set(this, 'checked', this.$().prop('checked'));
+ },
+
+ checkedChanged: function() {
+ var newCheckValue = this.get('checked');
+ Ember.run.next(() => {
+ if (this.$().prop('checked') !== newCheckValue) {
+ this.$().prop('checked', newCheckValue)
+ }
+ });
}
});
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]