Skip to content

Commit

Permalink
FIX: Changes for DF apache#1
Browse files Browse the repository at this point in the history
  • Loading branch information
maljac committed Dec 11, 2019
1 parent adf2cc2 commit 598317c
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 9 deletions.
16 changes: 8 additions & 8 deletions superset/assets/src/dashboard/actions/dashboardState.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,14 +73,14 @@ export function fetchFaveStar(id) {
.then(({ json }) => {
if (json.count > 0) dispatch(toggleFaveStar(true));
})
.catch(() =>
dispatch(
addDangerToast(
t(
'There was an issue fetching the favorite status of this dashboard.',
),
),
),
.catch(() => {}
// dispatch(
// addDangerToast(
// t(
// 'There was an issue fetching the favorite status of this dashboard.',
// ),
// ),
// ),
);
};
}
Expand Down
5 changes: 5 additions & 0 deletions superset/assets/src/dashboard/components/Header.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -285,6 +285,11 @@ class Header extends React.PureComponent {
const userCanSaveAs = dashboardInfo.dash_save_perm;
const popButton = hasUnsavedChanges;

// EDIT: Disable the dashboard header
if (!userCanSaveAs) {
return null;
}

return (
<div className="dashboard-header">
<div className="dashboard-component-header header-large">
Expand Down
2 changes: 1 addition & 1 deletion superset/assets/src/dashboard/stylesheets/builder.less
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
align-items: center;
justify-content: space-between;
padding: 0 24px;
box-shadow: 0 4px 4px 0 fade(@darkest, @opacity-light); /* @TODO color */
// box-shadow: 0 4px 4px 0 fade(@darkest, @opacity-light); /* @TODO color */
}

.dashboard-content {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
* under the License.
*/
.dashboard-component-header {
visibility: hidden;
width: 100%;
font-weight: @font-weight-bold;
padding: 16px 0;
Expand Down

0 comments on commit 598317c

Please sign in to comment.