mirror of
https://github.com/DeviceFarmer/stf.git
synced 2026-04-18 16:13:24 +02:00
Add error-message directive.
Improve UX for focus handling.
This commit is contained in:
@@ -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 = ''
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user