mirror of
https://github.com/flarum/core.git
synced 2025-08-01 14:10:37 +02:00
Add badges API + styles for discussions and users
This commit is contained in:
11
ember/app/components/ui/badge-button.js
Normal file
11
ember/app/components/ui/badge-button.js
Normal file
@@ -0,0 +1,11 @@
|
||||
import ActionButton from 'flarum/components/ui/action-button';
|
||||
|
||||
export default ActionButton.extend({
|
||||
tagName: 'span',
|
||||
classNames: ['badge'],
|
||||
title: Ember.computed.alias('label'),
|
||||
|
||||
didInsertElement: function() {
|
||||
this.$().tooltip();
|
||||
}
|
||||
});
|
Reference in New Issue
Block a user