Commit dcf13273 authored by Esmael El-Moslimany's avatar Esmael El-Moslimany Committed by Commit Bot

Internet Config Dialog WebUI: replace paper-button with cr-button

Bug: 967793
Change-Id: Ia6725145afae6df18e901c4f50139fc84a5a61b9
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1655696Reviewed-by: default avatarHector Carmona <hcarmona@chromium.org>
Commit-Queue: Esmael El-Moslimany <aee@chromium.org>
Cr-Commit-Position: refs/heads/master@{#668589}
parent 67a5a9ef
...@@ -11,13 +11,12 @@ ...@@ -11,13 +11,12 @@
<link rel="import" href="chrome://resources/cr_components/chromeos/network/network_shared_css.html"> <link rel="import" href="chrome://resources/cr_components/chromeos/network/network_shared_css.html">
<link rel="import" href="chrome://resources/cr_elements/chromeos/network/cr_network_icon.html"> <link rel="import" href="chrome://resources/cr_elements/chromeos/network/cr_network_icon.html">
<link rel="import" href="chrome://resources/cr_elements/chromeos/network/cr_onc_types.html"> <link rel="import" href="chrome://resources/cr_elements/chromeos/network/cr_onc_types.html">
<link rel="import" href="chrome://resources/cr_elements/cr_button/cr_button.html">
<link rel="import" href="chrome://resources/cr_elements/cr_dialog/cr_dialog.html"> <link rel="import" href="chrome://resources/cr_elements/cr_dialog/cr_dialog.html">
<link rel="import" href="chrome://resources/cr_elements/paper_button_style_css.html">
<link rel="import" href="chrome://resources/cr_elements/shared_style_css.html"> <link rel="import" href="chrome://resources/cr_elements/shared_style_css.html">
<link rel="import" href="chrome://resources/html/load_time_data.html"> <link rel="import" href="chrome://resources/html/load_time_data.html">
<link rel="import" href="chrome://resources/html/i18n_behavior.html"> <link rel="import" href="chrome://resources/html/i18n_behavior.html">
<link rel="import" href="chrome://resources/polymer/v1_0/iron-flex-layout/iron-flex-layout-classes.html"> <link rel="import" href="chrome://resources/polymer/v1_0/iron-flex-layout/iron-flex-layout-classes.html">
<link rel="import" href="chrome://resources/polymer/v1_0/paper-button/paper-button.html">
<link rel="stylesheet" href="chrome://resources/css/text_defaults_md.css"> <link rel="stylesheet" href="chrome://resources/css/text_defaults_md.css">
<script src="strings.js"></script> <script src="strings.js"></script>
...@@ -28,8 +27,7 @@ ...@@ -28,8 +27,7 @@
<dom-module id="internet-config-dialog"> <dom-module id="internet-config-dialog">
<template> <template>
<style <style include="cr-shared-style network-shared iron-flex">
include="cr-shared-style network-shared iron-flex paper-button-style">
:host { :host {
@apply --cr-page-host; @apply --cr-page-host;
} }
...@@ -73,13 +71,13 @@ ...@@ -73,13 +71,13 @@
<template is="dom-if" if="[[error_]]" restamp> <template is="dom-if" if="[[error_]]" restamp>
<div class="flex error">[[getError_(error_)]]</div> <div class="flex error">[[getError_(error_)]]</div>
</template> </template>
<paper-button class="cancel-button" on-tap="onCancelTap_"> <cr-button class="cancel-button" on-click="onCancelClick_">
$i18n{cancel} $i18n{cancel}
</paper-button> </cr-button>
<paper-button class="action-button" on-tap="onConnectTap_" <cr-button class="action-button" on-click="onConnectClick_"
disabled="[[!enableConnect_]]"> disabled="[[!enableConnect_]]">
$i18n{networkButtonConnect} $i18n{networkButtonConnect}
</paper-button> </cr-button>
</div> </div>
</cr-dialog> </cr-dialog>
</template> </template>
......
...@@ -125,12 +125,12 @@ Polymer({ ...@@ -125,12 +125,12 @@ Polymer({
}, },
/** @private */ /** @private */
onCancelTap_: function() { onCancelClick_: function() {
this.close_(); this.close_();
}, },
/** @private */ /** @private */
onConnectTap_: function() { onConnectClick_: function() {
this.$.networkConfig.connect(); this.$.networkConfig.connect();
}, },
}); });
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