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

1 line
5.3 KiB
JavaScript
Raw Permalink Normal View History

2022-12-13 07:10:06 +01:00
"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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiMjkzLmpzIiwibWFwcGluZ3MiOiI7Ozs7OztBQUFPO0FBQ1AsMkJBQTJCO0FBQzNCLEVBQUUsQ0FBQztBQUNIOzs7O0FBSUE7QUFDQTtBQUNBO0FBQ0EsSUFBSTs7QUFFSjtBQUNBOztBQUVBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0EsMkJBQTJCLENBQUM7QUFDNUIseUJBQXlCLENBQUM7QUFDMUIsMEJBQTBCLENBQUM7O0FBRTNCO0FBQ0EsMkJBQTJCLENBQUM7QUFDNUI7O0FBRUE7QUFDQTs7QUFFQTtBQUNBO0FBQ0E7QUFDQTs7QUFFQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7O0FBRUE7QUFDQTs7QUFFQSIsInNvdXJjZXMiOlsid2VicGFjazovLy8uL2ludGVyZmFjZS9odG1sNS92aWV3cy9lbXBsb3llZXMvdXNlcl9ncm91cC9Vc2VyR3JvdXBWaWV3Q29udHJvbGxlci5qcz9lNzdjIl0sInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCBjbGFzcyBVc2VyR3JvdXBWaWV3Q29udHJvbGxlciBleHRlbmRzIEJhc2VUcmVlVmlld0NvbnRyb2xsZXIge1xuXHRjb25zdHJ1Y3Rvciggb3B0aW9ucyA9IHt9ICkge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