mirror of
https://github.com/getredash/redash.git
synced 2025-12-25 01:03:20 -05:00
14 lines
328 B
JavaScript
14 lines
328 B
JavaScript
import template from './footer.html';
|
|
|
|
function controller(clientConfig, currentUser) {
|
|
this.version = clientConfig.version;
|
|
this.newVersionAvailable = clientConfig.newVersionAvailable && currentUser.isAdmin;
|
|
}
|
|
|
|
export default function init(ngModule) {
|
|
ngModule.component('footer', {
|
|
template,
|
|
controller,
|
|
});
|
|
}
|