Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(63)

Unified Diff: ui/webui/resources/cr_elements/network/cr_network_list_item.html

Issue 2528803002: MD Settings: Internet: Add/fix remaining policy items (Closed)
Patch Set: Rebase Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: ui/webui/resources/cr_elements/network/cr_network_list_item.html
diff --git a/ui/webui/resources/cr_elements/network/cr_network_list_item.html b/ui/webui/resources/cr_elements/network/cr_network_list_item.html
index c5d4e0ed6f8c87b48adda5d54ecb1eacd465aa56..d4df05a90b00371c2e380d4e2c8fa395341ac900 100644
--- a/ui/webui/resources/cr_elements/network/cr_network_list_item.html
+++ b/ui/webui/resources/cr_elements/network/cr_network_list_item.html
@@ -4,6 +4,8 @@
<link rel="import" href="chrome://resources/polymer/v1_0/paper-icon-button/paper-icon-button.html">
<link rel="import" href="chrome://resources/cr_elements/network/cr_network_icon.html">
<link rel="import" href="chrome://resources/cr_elements/network/cr_onc_types.html">
+<link rel="import" href="chrome://resources/cr_elements/policy/cr_policy_network_behavior.html">
+<link rel="import" href="chrome://resources/cr_elements/policy/cr_policy_network_indicator.html">
<link rel="import" href="chrome://resources/cr_elements/shared_style_css.html">
<link rel="import" href="chrome://resources/html/i18n_behavior.html">
@@ -36,6 +38,7 @@
}
#divOuter {
+ align-items: center;
border-style: none;
display: flex;
flex-direction: row;
@@ -80,6 +83,10 @@
height: 24px;
width: 24px;
}
+
+ cr-policy-network-indicator {
+ padding: 0 var(--cr-icon-padding);
+ }
</style>
<div id="divOuter" actionable$="[[isListItem]]"
first-custom-item$="[[item.isFirstCustomItem]]">
@@ -103,6 +110,11 @@
[[getNetworkStateText_(networkState, isListItem)]]
</div>
</div>
+ <template is="dom-if" if="[[isPolicySource(networkState.Source)]]">
+ <cr-policy-network-indicator
+ indicator-type="[[getIndicatorTypeForSource(networkState.Source)]]">
+ </cr-policy-network-indicator>
+ </template>
<template is="dom-if"
if="[[isSettingsButtonVisible_(networkState, showButtons)]]">
<div id="divButtons">

Powered by Google App Engine
This is Rietveld 408576698