blob: 2bc85d2723c84c21e1b82a32286d066ab9393184 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
<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="../i18n_setup.html">
<link rel="import" href="site_settings_prefs_browser_proxy.html">
<dom-module id="settings-edit-exception-dialog">
<template>
<style include="settings-shared"></style>
<cr-dialog id="dialog">
<div slot="title">$i18n{editSiteTitle}</div>
<div slot="body">
<cr-input label="$i18n{addSite}" value="{{origin_}}"
placeholder="$i18n{addSiteExceptionPlaceholder}"
on-input="validate_" error-message="{{errorMessage_}}"
invalid="[[invalid_]]" autofocus spellcheck="false">
</cr-input>
</div>
<div slot="button-container">
<cr-button class="cancel-button" on-click="onCancelTap_"
id="cancel">$i18n{cancel}</cr-button>
<cr-button id="actionButton" class="action-button"
on-click="onActionButtonTap_" disabled="[[invalid_]]">
$i18n{save}
</cr-button>
</div>
</cr-dialog>
</template>
<script src="edit_exception_dialog.js"></script>
</dom-module>
|