blob: 54841b8e77044b706ea6402db3a6dd399a488d78 [file] [log] [blame]
// Copyright 2018 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
Polymer({
is: 'app-management-item',
behaviors: [
app_management.StoreClient,
],
properties: {
/** @type {appManagement.mojom.App} */
app: {
type: Object,
},
},
listeners: {
'click': 'onClick_',
},
/**
* @private
*/
onClick_: function() {
this.dispatch(
app_management.actions.changePage(PageType.DETAIL, this.app.id));
},
/**
* @param {appManagement.mojom.App} app
* @return {string}
* @private
*/
iconUrlFromId_: function(app) {
return `chrome://extension-icon/${app.id}/128/1`;
},
});