diff --git a/dashboard/src/app/navbar/recent-workspaces/recent-workspaces.controller.ts b/dashboard/src/app/navbar/recent-workspaces/recent-workspaces.controller.ts index 1d31550e0b..751c9e92ca 100644 --- a/dashboard/src/app/navbar/recent-workspaces/recent-workspaces.controller.ts +++ b/dashboard/src/app/navbar/recent-workspaces/recent-workspaces.controller.ts @@ -40,12 +40,6 @@ export class NavbarRecentWorkspacesController { icon: 'fa fa-stop', _onclick: (workspaceId) => { this.stopRecentWorkspace(workspaceId) } }, - { - name: 'Snapshot', - scope: 'RUNNING', - icon: 'fa fa-clock-o', - _onclick: (workspaceId) => { this.createSnapshotRecentWorkspace(workspaceId) } - }, // stopped { name: 'Run', @@ -185,16 +179,6 @@ export class NavbarRecentWorkspacesController { }); } - /** - * Creates snapshot of specified workspace - * @param workspaceId {String} workspace id - */ - createSnapshotRecentWorkspace(workspaceId) { - this.cheWorkspace.createSnapshot(workspaceId).then(() => {}, (error) => { - this.$log.error(error); - }); - } - /** * Emit event to move workspace immediately * to top of the recent workspaces list diff --git a/dashboard/src/app/workspaces/workspace-details/workspace-details.controller.ts b/dashboard/src/app/workspaces/workspace-details/workspace-details.controller.ts index 18aab4950e..070226af60 100644 --- a/dashboard/src/app/workspaces/workspace-details/workspace-details.controller.ts +++ b/dashboard/src/app/workspaces/workspace-details/workspace-details.controller.ts @@ -484,16 +484,6 @@ export class WorkspaceDetailsController { }); } - /** - * Creates snapshot of workspace - */ - createSnapshotWorkspace(): void { - this.cheWorkspace.createSnapshot(this.workspaceId).then(() => {}, (error: any) => { - this.cheNotification.showError(error.data.message !== null ? error.data.message : 'Creating snapshot failed.'); - this.$log.error(error); - }); - } - /** * Register forms * diff --git a/dashboard/src/app/workspaces/workspace-details/workspace-details.html b/dashboard/src/app/workspaces/workspace-details/workspace-details.html index 4bddddb3da..d7da9e8eea 100644 --- a/dashboard/src/app/workspaces/workspace-details/workspace-details.html +++ b/dashboard/src/app/workspaces/workspace-details/workspace-details.html @@ -81,11 +81,6 @@ che-button-title="Stop" name="stopButton" ng-click="workspaceDetailsController.stopWorkspace()"> -