From 802bd2af2e3c6ba92eb1ce0180a13b11018f6695 Mon Sep 17 00:00:00 2001 From: Arielk Date: Mon, 16 Apr 2018 15:37:39 +0300 Subject: Interface Operation tab and screens Change-Id: If03234c783d6ce16fdd0945987ada83b6285f97f Issue-ID: SDC-1060 Signed-off-by: Arielk --- .../interface-operation/interface-operation-view-model.ts | 15 +++++++++++++++ .../interface-operation/interface-operation-view.html | 3 +++ .../tabs/interface-operation/interface-operation.less | 6 ++++++ .../workspace/tabs/plugins/plugins-context-view-model.ts | 6 +++++- 4 files changed, 29 insertions(+), 1 deletion(-) create mode 100644 catalog-ui/src/app/view-models/workspace/tabs/interface-operation/interface-operation-view-model.ts create mode 100644 catalog-ui/src/app/view-models/workspace/tabs/interface-operation/interface-operation-view.html create mode 100644 catalog-ui/src/app/view-models/workspace/tabs/interface-operation/interface-operation.less (limited to 'catalog-ui/src/app/view-models/workspace') diff --git a/catalog-ui/src/app/view-models/workspace/tabs/interface-operation/interface-operation-view-model.ts b/catalog-ui/src/app/view-models/workspace/tabs/interface-operation/interface-operation-view-model.ts new file mode 100644 index 0000000000..1d42943fc9 --- /dev/null +++ b/catalog-ui/src/app/view-models/workspace/tabs/interface-operation/interface-operation-view-model.ts @@ -0,0 +1,15 @@ +'use strict'; + +import {IWorkspaceViewModelScope} from "app/view-models/workspace/workspace-view-model"; + +export interface IInterfaceOperationViewModelScope extends IWorkspaceViewModelScope {}; + +export class InterfaceOperationViewModel { + + static '$inject' = [ + '$scope' + ]; + + constructor(private $scope: IInterfaceOperationViewModelScope) {} + +} diff --git a/catalog-ui/src/app/view-models/workspace/tabs/interface-operation/interface-operation-view.html b/catalog-ui/src/app/view-models/workspace/tabs/interface-operation/interface-operation-view.html new file mode 100644 index 0000000000..b83c097c71 --- /dev/null +++ b/catalog-ui/src/app/view-models/workspace/tabs/interface-operation/interface-operation-view.html @@ -0,0 +1,3 @@ +
+ +
diff --git a/catalog-ui/src/app/view-models/workspace/tabs/interface-operation/interface-operation.less b/catalog-ui/src/app/view-models/workspace/tabs/interface-operation/interface-operation.less new file mode 100644 index 0000000000..abfe3f939e --- /dev/null +++ b/catalog-ui/src/app/view-models/workspace/tabs/interface-operation/interface-operation.less @@ -0,0 +1,6 @@ +.workspace-interface-operation { + width: 100%; + display: inline-block; + top: -26px; + position: relative; +} diff --git a/catalog-ui/src/app/view-models/workspace/tabs/plugins/plugins-context-view-model.ts b/catalog-ui/src/app/view-models/workspace/tabs/plugins/plugins-context-view-model.ts index 3e0fb44cc8..1aff3db882 100644 --- a/catalog-ui/src/app/view-models/workspace/tabs/plugins/plugins-context-view-model.ts +++ b/catalog-ui/src/app/view-models/workspace/tabs/plugins/plugins-context-view-model.ts @@ -48,11 +48,15 @@ export class PluginsContextViewModel { uuid: this.$scope.component.uuid, lifecycleState: this.$scope.component.lifecycleState, isOwner: this.$scope.component.lastUpdaterUserId === this.$scope.user.userId, - version: this.$scope.component.version , + version: this.$scope.component.version, parentUrl: window.location.origin, eventsClientId: this.$scope.plugin.pluginId }; + if (this.$stateParams.queryParams) { + _.assign(this.$scope.queryParams, this.$stateParams.queryParams); + } + this.$scope.onLoadingDone = (plugin: Plugin) => { if (plugin.pluginId == this.$scope.plugin.pluginId) { this.$scope.isLoading = false; -- cgit 1.2.3-korg