@ovh-ux/ng-ovh-otrs
v9.5.0
Published
Manage OTRS tickets
Downloads
122
Readme
ng-ovh-otrs
Manage OVH OTRS tickets
Install
yarn add @ovh-ux/ng-ovh-otrs
Usage
import angular from 'angular';
import '@ovh-ux/ng-ovh-otrs';
angular.module('myApp', ['ngOvhOtrs']).config(
/* @ngInject */ (OtrsPopupProvider) => {
// Inject it to manager-navbar at app.config:
OtrsPopupProvider.setBaseUrlTickets('…');
},
);
const assistanceMenu = [
{
title: $translate.instant('otrs_menu_new_ticket'),
click: (callback) => {
if (!OtrsPopupService.isLoaded()) {
OtrsPopupService.init();
} else {
OtrsPopupService.toggle();
}
if (_.isFunction(callback)) {
callback();
}
},
},
];
Test
yarn test
Contributing
Always feel free to help out! Whether it's filing bugs and feature requests or working on some of the open issues, our contributing guide will help get you started.
License
BSD-3-Clause © OVH SAS