1
0
mirror of https://github.com/moparisthebest/mail synced 2024-11-26 10:52:17 -05:00

[WO-489] add FAQ link option to error message

This commit is contained in:
Felix Hammerl 2014-08-05 17:32:13 +02:00 committed by Tankred Hase
parent f824f1737f
commit f417a09b8d
2 changed files with 2 additions and 1 deletions

View File

@ -17,6 +17,7 @@ define(function(require) {
open: true,
title: options.title || 'Error',
message: options.errMsg || options.message,
showFaqLink: options.showFaqLink || false,
positiveBtnStr: options.positiveBtnStr || 'Ok',
negativeBtnStr: options.negativeBtnStr || 'Cancel',
showNegativeBtn: options.showNegativeBtn || false,

View File

@ -5,7 +5,7 @@
</header>
<div class="content">
<p>{{state.dialog.message}}</p>
<p>{{state.dialog.message}} <a ng-show="state.dialog.showFaqLink" href="https://github.com/whiteout-io/mail-html5/wiki/FAQ" target="_blank">Learn more.</a></p>
<div class="control">
<button wo-touch="confirm(false)" class="btn btn-alt" ng-show="state.dialog.showNegativeBtn">{{state.dialog.negativeBtnStr}}</button>
<button wo-touch="confirm(true)" class="btn">{{state.dialog.positiveBtnStr}}</button>