Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files
AMBARI-25094 Remove Flume Live widget from Ambari, alongside the Flum…
…e service during upgrade to HDP3. (ababiichuk)
  • Loading branch information
aBabiichuk committed Jan 10, 2019
1 parent a1f21c9 commit 04e120a9334f21773cf0ce3fc94c84ff4c0da11f
Showing 1 changed file with 7 additions and 1 deletion.
@@ -539,7 +539,7 @@ App.MainDashboardWidgetsView = Em.View.extend(App.Persist, App.LocalStorage, App
},

/**
* check if stack has upgraded from HDP 1.0 to 2.0 OR add/delete services.
* Check if any services with widgets were added or deleted.
* Update the value on server if true.
*/
checkServicesChange: function () {
@@ -560,6 +560,12 @@ App.MainDashboardWidgetsView = Em.View.extend(App.Persist, App.LocalStorage, App
newValue[state].push(id);
}
});
userPreferences[state].forEach(id => {
if (!defaultPreferences.visible.contains(id) && !defaultPreferences.hidden.contains(id)) {
isChanged = true;
newValue[state] = newValue[state].without(id);
}
});
Object.keys(defaultPreferences.groups).forEach(groupName => {
const groupPreferences = defaultPreferences.groups[groupName],
subGroupForAllItems = groupPreferences['*'],

0 comments on commit 04e120a

Please sign in to comment.