salix/modules/account/front/samba/index.js

15 lines
410 B
JavaScript

import ngModule from '../module';
import Section from 'salix/components/section';
export default class Controller extends Section {
onTestConection() {
this.$http.get(`SambaConfigs/test`)
.then(() => this.vnApp.showSuccess(this.$t('Samba connection established!')));
}
}
ngModule.component('vnAccountSamba', {
template: require('./index.html'),
controller: Controller
});