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

SMB Shares WebUI: replace paper-button with cr-button

Bug: 967793
Change-Id: I0e37abc64cd4f0a8d95aa6c1ea6b9d15b0b9cb75
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1656130Reviewed-by: default avatarHector Carmona <hcarmona@chromium.org>
Commit-Queue: Esmael El-Moslimany <aee@chromium.org>
Cr-Commit-Position: refs/heads/master@{#668586}
parent d7e4d94a
<link rel="import" href="chrome://resources/html/polymer.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_input/cr_input.html">
<link rel="import" href="chrome://resources/cr_elements/paper_button_style_css.html">
<link rel="import" href="chrome://resources/html/assert.html">
<link rel="import" href="chrome://resources/html/i18n_behavior.html">
<link rel="import" href="chrome://resources/polymer/v1_0/paper-button/paper-button.html">
<link rel="import" href="chrome://resources/cr_components/chromeos/smb_shares/smb_browser_proxy.html">
<dom-module id="smb-credentials-dialog">
<template>
<style paper-button-style>
<style>
cr-dialog {
--cr-dialog-native: {
border-radius: 0;
......@@ -36,13 +35,13 @@
</cr-input>
</div>
<div slot="button-container">
<paper-button class="cancel-button" on-click="onCancelButtonTap_">
[[i18n('cancel')]]
</paper-button>
<paper-button class="action-button" on-click="onSaveButtonTap_"
disabled="[[!username_]]">
[[i18n('save')]]
</paper-button>
<cr-button class="cancel-button" on-click="onCancelButtonClick_">
[[i18n('cancel')]]
</cr-button>
<cr-button class="action-button" on-click="onSaveButtonClick_"
disabled="[[!username_]]">
[[i18n('save')]]
</cr-button>
</div>
</cr-dialog>
</template>
......
......@@ -52,12 +52,12 @@ Polymer({
},
/** @private */
onCancelButtonTap_: function() {
onCancelButtonClick_: function() {
chrome.send('dialogClose');
},
/** @private */
onSaveButtonTap_: function() {
onSaveButtonClick_: function() {
this.browserProxy_.updateCredentials(
this.mountId_, this.username_, this.password_);
chrome.send('dialogClose');
......
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