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:
@@ -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">
|
||||
|
||||
@@ -223,6 +223,10 @@
|
||||
return new GrRepoApi(this);
|
||||
};
|
||||
|
||||
Plugin.prototype.changeMetadata = function() {
|
||||
return new GrChangeMetadataApi(this);
|
||||
};
|
||||
|
||||
Plugin.prototype.admin = function() {
|
||||
return new GrAdminApi(this);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user