- Bug fixes
- TRAICIE_KO_INTERVIEW_DEFINITION spacialist updated to new version - Edit Document Version now includes Catalog Tagging Fields - eveai_ordered_list_editor no longer includes Expand Button & Add Row doesn't submit - Active Period was not correctly returned in some cases in the license_period_services.py - Partner menu removed if not Super User
This commit is contained in:
@@ -79,8 +79,10 @@ window.EveAI.OrderedListEditors = {
|
||||
// Add row button
|
||||
const addRowBtn = document.createElement('button');
|
||||
addRowBtn.className = 'btn btn-sm btn-primary mt-2';
|
||||
addRowBtn.type = 'button'; // Deze regel toevoegen om submit te voorkomen
|
||||
addRowBtn.innerHTML = 'Add Row';
|
||||
addRowBtn.addEventListener('click', () => {
|
||||
addRowBtn.addEventListener('click', (e) => {
|
||||
e.preventDefault(); // Extra veiligheid om submit te voorkomen
|
||||
const newRow = {};
|
||||
// Create empty row with default values
|
||||
Object.entries(listTypeConfig).forEach(([key, field]) => {
|
||||
@@ -93,27 +95,9 @@ window.EveAI.OrderedListEditors = {
|
||||
table.addRow(newRow);
|
||||
this._updateTextarea(containerId, table);
|
||||
});
|
||||
|
||||
container.parentNode.insertBefore(addRowBtn, container.nextSibling);
|
||||
|
||||
// Add explode button for fullscreen mode
|
||||
const explodeBtn = document.createElement('button');
|
||||
explodeBtn.className = 'btn btn-sm btn-secondary mt-2 ms-2';
|
||||
explodeBtn.innerHTML = '<i class="material-icons">fullscreen</i> Expand';
|
||||
explodeBtn.addEventListener('click', () => {
|
||||
container.classList.toggle('fullscreen-mode');
|
||||
|
||||
// Update button text based on current state
|
||||
if (container.classList.contains('fullscreen-mode')) {
|
||||
explodeBtn.innerHTML = '<i class="material-icons">fullscreen_exit</i> Collapse';
|
||||
} else {
|
||||
explodeBtn.innerHTML = '<i class="material-icons">fullscreen</i> Expand';
|
||||
}
|
||||
|
||||
// Redraw table to adjust to new size
|
||||
table.redraw(true);
|
||||
});
|
||||
container.parentNode.insertBefore(explodeBtn, addRowBtn.nextSibling);
|
||||
|
||||
// Store instance
|
||||
this.instances[containerId] = {
|
||||
table: table,
|
||||
|
||||
@@ -78,7 +78,7 @@
|
||||
{'name': 'Users', 'url': '/user/view_users', 'roles': ['Super User', 'Partner Admin', 'Tenant Admin']},
|
||||
]) }}
|
||||
{% endif %}
|
||||
{% if current_user.is_authenticated %}
|
||||
{% if current_user.is_authenticated and current_user.has_roles('Super User') %}
|
||||
{% set partner_menu_items = [
|
||||
{'name': 'Partners', 'url': '/partner/partners', 'roles': ['Super User']},
|
||||
{'name': 'Partner Services', 'url': '/partner/partner_services', 'roles': ['Super User']}
|
||||
|
||||
Reference in New Issue
Block a user