Skip to content

Commit

Permalink
removed isEditable code from dashboard container factory
Browse files Browse the repository at this point in the history
  • Loading branch information
ThomThomson committed Dec 7, 2020
1 parent 0c81703 commit bfc3de3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,6 @@ export interface DashboardContainerServices {
overlays: CoreStart['overlays'];
uiSettings: IUiSettingsClient;
embeddable: EmbeddableStart;
hideWriteControls: boolean;
uiActions: UiActionsStart;
http: CoreStart['http'];
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@ export class DashboardContainerFactoryDefinition
) {}

public isEditable = async () => {
const { application, hideWriteControls } = await this.getStartServices();
return !!application.capabilities.createNew && !hideWriteControls;
// Currently unused for dashboards
return false;
};

public readonly getDisplayName = () => {
Expand Down

0 comments on commit bfc3de3

Please sign in to comment.