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()"> -
- -
diff --git a/dashboard/src/components/api/che-workspace.factory.ts b/dashboard/src/components/api/che-workspace.factory.ts index 45ed2da285..4fff941d8b 100644 --- a/dashboard/src/components/api/che-workspace.factory.ts +++ b/dashboard/src/components/api/che-workspace.factory.ts @@ -61,8 +61,7 @@ export class CheWorkspace { deleteProject: {method: 'DELETE', url : '/api/workspace/:workspaceId/project/:path'}, stopWorkspace: {method: 'DELETE', url : '/api/workspace/:workspaceId/runtime'}, startWorkspace: {method: 'POST', url : '/api/workspace/:workspaceId/runtime?environment=:envName'}, - addCommand: {method: 'POST', url: '/api/workspace/:workspaceId/command'}, - createSnapshot: {method: 'POST', url: '/api/workspace/:workspaceId/snapshot'} + addCommand: {method: 'POST', url: '/api/workspace/:workspaceId/command'} } ); @@ -496,14 +495,4 @@ export class CheWorkspace { }); } } - - /** - * Create snapshot of workspace - * @param workspaceId {String} workspace id - * @returns {*} - */ - createSnapshot(workspaceId) { - return this.remoteWorkspaceAPI.createSnapshot({workspaceId : workspaceId}, {}).$promise; - } - }