| <link rel="import" href="chrome://resources/html/polymer.html"> |
| |
| <link rel="import" href="../settings_shared_css.html"> |
| <link rel="import" href="smb_browser_proxy.html"> |
| |
| <dom-module id="settings-add-smb-share-dialog"> |
| <template> |
| <style include="settings-shared"> |
| paper-input { |
| width: var(--paper-input-max-width); |
| } |
| |
| </style> |
| |
| <dialog is="cr-dialog" id="dialog"> |
| <div slot="title">$i18n{addSmbShare}</div> |
| <div slot="body" spellcheck="false"> |
| <paper-input always-float-label id="address" |
| label="$i18n{smbShareUrl}" |
| value="{{mountUrl_}}" |
| autofocus> |
| </paper-input> |
| </div> |
| <div slot="button-container"> |
| <paper-button class="cancel-button" on-click="cancel_" id="cancel"> |
| $i18n{cancel}</paper-button> |
| <paper-button id="actionButton" class="action-button" |
| on-click="onAddButtonTap_" |
| disabled="[[!canAddShare_(mountUrl_)]]"> |
| $i18n{add} |
| </paper-button> |
| </div> |
| </dialog> |
| </template> |
| <script src="add_smb_share_dialog.js"></script> |
| </dom-module> |
| |