TimeTrex/interface/html5/dist/employees-user_group-UserGroupViewController.bundle.js

1 line
5.3 KiB
JavaScript

"use strict";(self.webpackChunktimetrex=self.webpackChunktimetrex||[]).push([["employees-user_group-UserGroupViewController"],{293:(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"UserGroupViewController\": () => (/* binding */ UserGroupViewController)\n/* harmony export */ });\n/* provided dependency */ var _ = __webpack_require__(9050);\n/* provided dependency */ var $ = __webpack_require__(9755);\nclass UserGroupViewController extends BaseTreeViewController {\n\tconstructor( options = {} ) {\n\t\t_.defaults( options, {\n\t\t\tel: '#user_group_view_container',\n\n\n\n\t\t\ttree_mode: null,\n\t\t\tgrid_table_name: null,\n\t\t\tgrid_select_id_array: null\n\t\t} );\n\n\t\tsuper( options );\n\t}\n\n\tinit( options ) {\n\t\t//this._super('initialize', options );\n\t\tthis.edit_view_tpl = 'UserGroupEditView.html';\n\t\tthis.permission_id = 'user_group';\n\t\tthis.viewId = 'UserGroup';\n\t\tthis.script_name = 'UserGroupView';\n\t\tthis.table_name_key = 'user_group';\n\t\tthis.context_menu_name = $.i18n._( 'Employee Groups' );\n\t\tthis.grid_table_name = $.i18n._( 'Employee Groups' );\n\t\tthis.navigation_label = $.i18n._( 'Employee Groups' );\n\n\t\tthis.tree_mode = true;\n\t\tthis.primary_tab_label = $.i18n._( 'Employee Group' );\n\t\tthis.primary_tab_key = 'tab_employee_group';\n\n\t\tthis.api = TTAPI.APIUserGroup;\n\t\tthis.grid_select_id_array = [];\n\n\t\tthis.render();\n\t\tthis.buildContextMenu();\n\t\tthis.initData();\n\t}\n\n\tgetCustomContextMenuModel() {\n\t\t//We currently exclude *_and_next context icons due to unintended interactions with BaseTreeViewController views.\n\t\t//Navigation arrows have been fixed to work as expected. However, using delete_and_next to delete a parent record also deletes the child records\n\t\t//which means the attempt to go to the \"next\" record will fail as it no exists.\n\t\tvar context_menu_model = {\n\t\t\texclude: [\n\t\t\t\t'copy',\n\t\t\t\t'mass_edit',\n\t\t\t\t'delete_and_next',\n\t\t\t\t'save_and_continue',\n\t\t\t\t'save_and_next',\n\t\t\t\t'export_excel'\n\t\t\t],\n\t\t\tinclude: []\n\t\t};\n\n\t\treturn context_menu_model;\n\t}\n\n}//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiMjkzLmpzIiwibWFwcGluZ3MiOiI7Ozs7OztBQUFPO0FBQ1AsMkJBQTJCO0FBQzNCLEVBQUUsQ0FBQztBQUNIOzs7O0FBSUE7QUFDQTtBQUNBO0FBQ0EsSUFBSTs7QUFFSjtBQUNBOztBQUVBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0EsMkJBQTJCLENBQUM7QUFDNUIseUJBQXlCLENBQUM7QUFDMUIsMEJBQTBCLENBQUM7O0FBRTNCO0FBQ0EsMkJBQTJCLENBQUM7QUFDNUI7O0FBRUE7QUFDQTs7QUFFQTtBQUNBO0FBQ0E7QUFDQTs7QUFFQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7O0FBRUE7QUFDQTs7QUFFQSIsInNvdXJjZXMiOlsid2VicGFjazovLy8uL2ludGVyZmFjZS9odG1sNS92aWV3cy9lbXBsb3llZXMvdXNlcl9ncm91cC9Vc2VyR3JvdXBWaWV3Q29udHJvbGxlci5qcz9lNzdjIl0sInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCBjbGFzcyBVc2VyR3JvdXBWaWV3Q29udHJvbGxlciBleHRlbmRzIEJhc2VUcmVlVmlld0NvbnRyb2xsZXIge1xuXHRjb25zdHJ1Y3Rvciggb3B0aW9ucyA9IHt9ICkge1xuXHRcdF8uZGVmYXVsdHMoIG9wdGlv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