[Major] Added new control view
This commit is contained in:
parent
4fefe76b12
commit
19626cd570
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"name": "strolch-wc-inspector",
|
||||
"description": "Strolch WebComponent Inspector",
|
||||
"version": "0.12.3",
|
||||
"version": "0.13.0",
|
||||
"authors": ["Robert von Burg"],
|
||||
"keywords": [
|
||||
"strolch",
|
||||
|
|
|
@ -108,6 +108,7 @@
|
|||
|
||||
<paper-button raised on-tap="onTrigger">Trigger</paper-button>
|
||||
<paper-button raised on-tap="onRemoveAll">Remove All</paper-button>
|
||||
<paper-button raised on-tap="onReload">Reload</paper-button>
|
||||
<paper-icon-button icon="refresh" title="Refresh" on-tap="reload"></paper-icon-button>
|
||||
</div>
|
||||
|
||||
|
@ -183,6 +184,11 @@
|
|||
</tr>
|
||||
</template>
|
||||
|
||||
<tr>
|
||||
<td class="label">Locator:</td>
|
||||
<td>[[selectedItem.locator]]</td>
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
|
||||
<div class="item-btns">
|
||||
|
@ -190,6 +196,9 @@
|
|||
<template is="dom-if" if="[[canExecute(selectedItem)]]">
|
||||
<paper-button raised on-tap="onToExecution">Execute</paper-button>
|
||||
</template>
|
||||
<template is="dom-if" if="[[isRootElement(selectedItem)]]">
|
||||
<paper-button raised on-tap="onRemove">Remove</paper-button>
|
||||
</template>
|
||||
|
||||
<template is="dom-if" if="[[isAction(selectedItem)]]">
|
||||
<paper-button raised on-tap="onToWarning">Warning</paper-button>
|
||||
|
@ -349,6 +358,15 @@
|
|||
};
|
||||
this.$.ajaxSetState.generateRequest();
|
||||
},
|
||||
onRemove: function (e) {
|
||||
this.$.ajaxSetState.url = this.basePath + 'rest/strolch/control/state';
|
||||
this.$.ajaxSetState.method = 'DELETE';
|
||||
this.$.ajaxSetState.params = {
|
||||
realm: this.selectedRealm,
|
||||
locator: this.selectedItem.locator
|
||||
};
|
||||
this.$.ajaxSetState.generateRequest();
|
||||
},
|
||||
onTrigger: function (e) {
|
||||
this.$.ajaxSetState.url = this.basePath + 'rest/strolch/control/state';
|
||||
this.$.ajaxSetState.method = 'PUT';
|
||||
|
@ -358,6 +376,15 @@
|
|||
};
|
||||
this.$.ajaxSetState.generateRequest();
|
||||
},
|
||||
onReload: function (e) {
|
||||
this.$.ajaxSetState.url = this.basePath + 'rest/strolch/control/state';
|
||||
this.$.ajaxSetState.method = 'PUT';
|
||||
this.$.ajaxSetState.params = {
|
||||
realm: this.selectedRealm,
|
||||
state: 'ReloadActivities'
|
||||
};
|
||||
this.$.ajaxSetState.generateRequest();
|
||||
},
|
||||
|
||||
onAddActivity: function (e) {
|
||||
if (this.newLocator == null || this.newLocator.length == 0) {
|
||||
|
|
Loading…
Reference in New Issue