blob: ae8796610e0514850d511f0112e6e56261fd0419 [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-permission-item',
behaviors: [
app_management.StoreClient,
],
properties: {
/**
* The name of the permission, to be displayed to the user.
* @type {string}
*/
permissionLabel: String,
/**
* A string version of the permission type, corresponding to a value of
* the PwaPermissionType enum.
* @type {string}
*/
permissionType: String,
/**
* @type {App}
*/
app_: Object,
/** @type {string} */
icon: String,
},
attached: function() {
this.watch('app_', state => app_management.util.getSelectedApp(state));
this.updateFromStore();
},
});