Commit 276267a3 authored by Joel Hockey's avatar Joel Hockey Committed by Commit Bot

Add id to Plugin VM app management subpages

Currently, Plugin VM subpages such as shared folders or USB do not have
id as a URL param.  As a consequence, if app service sends any events
about apps while the page is open, settings will change to show the main
page since it doesn't recognize the current app page and suspects that
the currently shown app has been deleted.

Change-Id: I650230187e6dc80814ff5b7c5b648c990f349be6
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2409464Reviewed-by: default avatarJeevan Shikaram <jshikaram@chromium.org>
Commit-Queue: Joel Hockey <joelhockey@chromium.org>
Cr-Commit-Position: refs/heads/master@{#807383}
parent 970f0aea
......@@ -74,13 +74,15 @@ Polymer({
/** @private */
onSharedPathsClick_() {
settings.Router.getInstance().navigateTo(
settings.routes.APP_MANAGEMENT_PLUGIN_VM_SHARED_PATHS);
settings.routes.APP_MANAGEMENT_PLUGIN_VM_SHARED_PATHS,
new URLSearchParams({'id': this.app_.id}));
},
/** @private */
onSharedUsbDevicesClick_() {
settings.Router.getInstance().navigateTo(
settings.routes.APP_MANAGEMENT_PLUGIN_VM_SHARED_USB_DEVICES);
settings.routes.APP_MANAGEMENT_PLUGIN_VM_SHARED_USB_DEVICES,
new URLSearchParams({'id': this.app_.id}));
},
/**
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment