Skip to content

Commit d8b8b3b

Browse files
committed
chore(alert): fix indenting
1 parent 445400e commit d8b8b3b

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/alert/alert.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ angular.module('mgcrea.ngStrap.alert', ['mgcrea.ngStrap.modal'])
2121
// Specific options
2222
duration: false,
2323
type: false,
24-
dismissable: true
24+
dismissable: true
2525
};
2626

2727
this.$get = function($modal, $timeout) {
@@ -36,8 +36,8 @@ angular.module('mgcrea.ngStrap.alert', ['mgcrea.ngStrap.modal'])
3636
$alert = $modal(options);
3737

3838
// Support scope as string options [/*title, content, */ type, dismissable]
39-
$alert.$scope.dismissable = options.dismissable;
40-
if(options.type) {
39+
$alert.$scope.dismissable = !!options.dismissable;
40+
if(options.type) {
4141
$alert.$scope.type = options.type;
4242
}
4343

src/alert/alert.tpl.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
<div class="alert" tabindex="-1" ng-class="[type ? 'alert-' + type : null]">
2-
<button type="button" class="close" ng-show="dismissable" ng-click="$hide()">&times;</button>
2+
<button type="button" class="close" ng-if="dismissable" ng-click="$hide()">&times;</button>
33
<strong ng-bind="title"></strong>&nbsp;<span ng-bind-html="content"></span>
44
</div>

0 commit comments

Comments
 (0)