Sha256: 8cee79d1a6983af68b56f9e16cffa58b45246e755a06f06639311021f26ef4c6
Contents?: true
Size: 853 Bytes
Versions: 9
Compression:
Stored size: 853 Bytes
Contents
import { Registry } from './registry' import { UserControls } from './user_controls' import { GroupControls } from './group_controls' export class PermissionsControl { /** * Initialize the save controls * @param {jQuery} element the jquery selector for the permissions container * @param {String} template_id the identifier of the template for the added elements */ constructor(element, template_id) { if (element.size() == 0) { return } this.element = element this.registry = new Registry(this.element, this.object_name(), template_id) this.user_controls = new UserControls(this.element, this.registry) this.group_controls = new GroupControls(this.element, this.registry) } // retrieve object_name the name of the object to create object_name() { return this.element.data('param-key') } }
Version data entries
9 entries across 9 versions & 2 rubygems