@ovh-ux/ng-ovh-otrs

Manage OTRS tickets

Usage no npm install needed!

<script type="module">
  import ovhUxNgOvhOtrs from 'https://cdn.skypack.dev/@ovh-ux/ng-ovh-otrs';
</script>

README

ng-ovh-otrs

Manage OVH OTRS tickets

npm version Downloads Dependencies Dev Dependencies

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