@ovh-ux/ng-ovh-otrs

9.4.0 • Public • Published

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

Dependencies (2)

Dev Dependencies (2)

Package Sidebar

Install

npm i @ovh-ux/ng-ovh-otrs

Weekly Downloads

2

Version

9.4.0

License

BSD-3-Clause

Unpacked Size

983 kB

Total Files

47

Last publish

Collaborators

  • jisay
  • blary_jp
  • antleblanc
  • cbourgois
  • ovh-ux-cds
  • lizardk
  • ovh
  • marie-j