Skip to content

Commit bfc3de3

Browse files
committed
removed isEditable code from dashboard container factory
1 parent 0c81703 commit bfc3de3

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

src/plugins/dashboard/public/application/embeddable/dashboard_container.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,6 @@ export interface DashboardContainerServices {
7878
overlays: CoreStart['overlays'];
7979
uiSettings: IUiSettingsClient;
8080
embeddable: EmbeddableStart;
81-
hideWriteControls: boolean;
8281
uiActions: UiActionsStart;
8382
http: CoreStart['http'];
8483
}

src/plugins/dashboard/public/application/embeddable/dashboard_container_factory.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,8 @@ export class DashboardContainerFactoryDefinition
5050
) {}
5151

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

5757
public readonly getDisplayName = () => {

0 commit comments

Comments
 (0)