osb/spark/resources/assets/js/kiosk/kiosk.js
2017-11-03 16:26:07 +11:00

34 lines
629 B
JavaScript
Vendored

module.exports = {
props: ['user'],
/**
* Load mixins for the component.
*/
mixins: [require('./../mixins/tab-state')],
/**
* Prepare the component.
*/
mounted() {
this.usePushStateForTabs('.spark-settings-tabs');
},
/**
* The component has been created by Vue.
*/
created() {
Bus.$on('sparkHashChanged', function (hash, parameters) {
if (hash == 'users') {
setTimeout(() => {
$('#kiosk-users-search').focus();
}, 150);
}
return true;
});
}
};