Plugin API for label score updates

Plugin may use following API to receive saved label updates:

``` js
plugin.changeMetadata().onLabelsChanged(
    labels => console.log(labels));
```

Feature: Issue 820117
Change-Id: Id428606db25086cfdf5a5b420e34777cc8b27303
This commit is contained in:
Viktar Donich
2018-04-03 15:32:54 -07:00
parent e137acc455
commit b6db19e072
11 changed files with 201 additions and 37 deletions

View File

@@ -20,6 +20,7 @@ limitations under the License.
<link rel="import" href="../../core/gr-reporting/gr-reporting.html">
<link rel="import" href="../../plugins/gr-admin-api/gr-admin-api.html">
<link rel="import" href="../../plugins/gr-attribute-helper/gr-attribute-helper.html">
<link rel="import" href="../../plugins/gr-change-metadata-api/gr-change-metadata-api.html">
<link rel="import" href="../../plugins/gr-dom-hooks/gr-dom-hooks.html">
<link rel="import" href="../../plugins/gr-event-helper/gr-event-helper.html">
<link rel="import" href="../../plugins/gr-popup-interface/gr-popup-interface.html">

View File

@@ -223,6 +223,10 @@
return new GrRepoApi(this);
};
Plugin.prototype.changeMetadata = function() {
return new GrChangeMetadataApi(this);
};
Plugin.prototype.admin = function() {
return new GrAdminApi(this);
};