blob: 19d05a30281fcca186b47d65fc8a9dea3b146ed9 [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-app',
behaviors: [
app_management.StoreClient,
],
properties: {
/**
* @private {boolean}
*/
mainViewSelected_: Boolean,
/**
* @private {boolean}
*/
pwaPermissionViewSelected_: Boolean,
},
/** @override */
attached: function() {
this.watch('mainViewSelected_', function(state) {
return state.currentPage.pageType == PageType.MAIN;
});
this.watch('pwaPermissionViewSelected_', function(state) {
return state.currentPage.pageType == PageType.DETAIL;
});
},
});