osb/spark/resources/assets/js/kiosk/kiosk.js

34 lines
629 B
JavaScript
Raw Normal View History

2017-11-03 05:26:07 +00:00
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;
});
}
};