Files
redash/client/app/components/footer/index.js

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,
});
}