summaryrefslogtreecommitdiffstats
path: root/catalog-ui/src/app/view-models
diff options
context:
space:
mode:
Diffstat (limited to 'catalog-ui/src/app/view-models')
-rw-r--r--catalog-ui/src/app/view-models/workspace/tabs/interface-operation/interface-operation-view-model.ts15
-rw-r--r--catalog-ui/src/app/view-models/workspace/tabs/interface-operation/interface-operation-view.html3
-rw-r--r--catalog-ui/src/app/view-models/workspace/tabs/interface-operation/interface-operation.less6
-rw-r--r--catalog-ui/src/app/view-models/workspace/tabs/plugins/plugins-context-view-model.ts6
4 files changed, 29 insertions, 1 deletions
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 @@
+<div class="workspace-interface-operation">
+ <ng2-interface-operation [component]="component" [readonly]="isViewMode() || !isDesigner()"></ng2-interface-operation>
+</div>
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;