Merge "Allow for custom cancel label in dialog"

This commit is contained in:
Wyatt Allen
2017-11-14 23:17:57 +00:00
committed by Gerrit Code Review
2 changed files with 5 additions and 1 deletions

View File

@@ -58,7 +58,7 @@ limitations under the License.
<header><content select=".header"></content></header>
<main><content select=".main"></content></main>
<footer>
<gr-button link on-tap="_handleCancelTap">Cancel</gr-button>
<gr-button link on-tap="_handleCancelTap">[[cancelLabel]]</gr-button>
<gr-button link primary on-tap="_handleConfirmTap" disabled="[[disabled]]">
[[confirmLabel]]
</gr-button>

View File

@@ -34,6 +34,10 @@
type: String,
value: 'Confirm',
},
cancelLabel: {
type: String,
value: 'Cancel',
},
disabled: {
type: Boolean,
value: false,