fix(about): dialog should not show twitter if empty
* The bio directive accidentally shows the Twitter link in the dialog, even if it's undefined. * Fix deprecation warning of Angular Material, where `md-dialog-actions` should be used instead of the class.
This commit is contained in:
parent
0b95826e79
commit
28d742ffce
|
@ -22,7 +22,7 @@
|
|||
for person, name in bios
|
||||
if person.type == type
|
||||
.c3
|
||||
md-card(biocard class="bio-card" website="#{person.website}" twitter="#{person.twitter}" pic="#{person.picture}" bio="#{person.bio}" name="#{person.name}")
|
||||
md-card(biocard class="bio-card" website=person.website twitter=person.twitter pic=person.picture bio=person.bio name=person.name)
|
||||
header
|
||||
image(src="#{person.picture}" alt="#person.name")
|
||||
|
||||
|
|
|
@ -33,11 +33,11 @@ angularIO.directive('biocard', function($rootScope, $timeout, $mdDialog) {
|
|||
' </div>' +
|
||||
' <p class="text-body">{{bio}}</p>' +
|
||||
' </md-content>' +
|
||||
' <div class="md-actions">' +
|
||||
' <md-dialog-actions>' +
|
||||
' <md-button ng-click="closeDialog()">' +
|
||||
' Close Bio' +
|
||||
' </md-button>' +
|
||||
' </div>' +
|
||||
' </md-dialog-actions>' +
|
||||
'</md-dialog>'
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue