mirror of
https://github.com/openstf/stf
synced 2025-10-05 10:39:25 +02:00
Add error-message directive.
Improve UX for focus handling.
This commit is contained in:
parent
d6848c7f17
commit
a83ecd43ed
10 changed files with 101 additions and 10 deletions
|
@ -0,0 +1,15 @@
|
|||
module.exports = function errorMessageDirective() {
|
||||
return {
|
||||
restrict: 'EA',
|
||||
replace: true,
|
||||
scope: {
|
||||
message: '@'
|
||||
},
|
||||
template: require('./error-message.jade'),
|
||||
link: function (scope, element, attrs) {
|
||||
scope.closeMessage = function () {
|
||||
scope.message = ''
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue