Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions docs/configuration.md
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ Access settings via **Settings → Compose** in the Unraid web UI.
| **Hide Compose Containers (Dashboard Tile)** | No | Hide containers managed by Compose stacks from Unraid's Docker Containers dashboard tile. This avoids duplicate entries when both tiles are visible. Requires "Show Dashboard Tile". |
| **Hide Compose Containers (Docker Page)** | No | Patch the native Docker UI to hide or filter Compose-managed containers. See the Web UI Patches section for version limitations. |
| **Show Compose Above Docker Containers** | No | When the Docker page is displayed without tabs, move the Compose Stacks section above the built-in Docker Containers section. |
| **Expand Stacks by Default** | No | Automatically expand all stack detail rows when the page loads. |

### Update Checking

Expand Down
10 changes: 10 additions & 0 deletions source/compose.manager/compose.manager.settings.page
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -1256,6 +1256,16 @@ $projects_exist = intval(shell_exec("ls -l " . $compose_root . " | grep ^d | wc
</dd>
</dl>

<dl>
<dt style="cursor: help;" onclick="toggleHelp(this)">_(Expand Stacks by Default)_:</dt>
<dd>
<input type="checkbox" name="STACKS_DEFAULT_EXPANDED" id="STACKS_DEFAULT_EXPANDED" class="compose-toggle" <?= ($cfg['STACKS_DEFAULT_EXPANDED'] ?? 'false') == 'true' ? 'checked' : '' ?>>
<blockquote class="inline_help">
When enabled, all stack detail rows will be expanded when the page loads.
</blockquote>
</dd>
</dl>

<dl>
<dt style="cursor: help;" onclick="toggleHelp(this)">_(Hide Compose Containers from Docker)_:</dt>
<dd>
Expand Down
1 change: 1 addition & 0 deletions source/compose.manager/default.cfg
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,4 @@ BACKUP_SCHEDULE_ENABLED="false"
BACKUP_SCHEDULE_FREQUENCY="daily"
BACKUP_SCHEDULE_TIME="03:00"
BACKUP_SCHEDULE_DAY="1"
STACKS_DEFAULT_EXPANDED="false"
10 changes: 7 additions & 3 deletions source/compose.manager/php/compose_list.php
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
require_once("/usr/local/emhttp/plugins/compose.manager/php/util.php");
// Note: helper functions removed; test suite provides any needed test-local helpers.

$cfg = parse_plugin_cfg($sName);

// Get stack state
$stackstate = shell_exec($plugin_root . "/scripts/compose.sh -c list");
$stackstate = json_decode($stackstate, TRUE);
Expand Down Expand Up @@ -280,7 +282,8 @@
$o .= "<td class='ct-name' style='padding:8px 8px 8px 20px'>";
// Expand arrow on the left (separate from the outer/inner structure)
$o .= "<span style='display:inline-block;width:14px;text-align:left;vertical-align:middle;margin-right:8px;'>";
$o .= "<i class='fa fa-chevron-right expand-icon' id='expand-icon-$id' onclick='toggleStackDetails(\"$id\");event.stopPropagation();' style='cursor:pointer;'></i>";
$expandedClass = $cfg['STACKS_DEFAULT_EXPANDED'] == 'true' ? 'expanded' : '';
$o .= "<i class='fa fa-chevron-right expand-icon $expandedClass' id='expand-icon-$id' onclick='toggleStackDetails(\"$id\");event.stopPropagation();' style='cursor:pointer;'></i>";
$o .= "</span>";
// Icon and name using Docker's outer/inner structure
$o .= "<span class='outer $outerClass'>";
Expand Down Expand Up @@ -331,8 +334,9 @@

$o .= "</tr>";

// Expandable details row (hidden by default)
$o .= "<tr class='stack-details-row' id='details-row-$id' style='display:none;'>";
// Expandable details row
$detailsDisplay = $cfg['STACKS_DEFAULT_EXPANDED'] == 'true' ? 'table-row' : 'none';
$o .= "<tr class='stack-details-row' id='details-row-$id' style='display:$detailsDisplay;'>";
$o .= "<td colspan='9' class='stack-details-cell' style='padding:0 0 0 60px;background:rgba(0,0,0,0.05);'>";
$o .= "<div class='stack-details-container' id='details-container-$id' style='padding:8px 16px;'>";
$o .= "<i class='fa fa-spinner fa-spin compose-spinner'></i> Loading containers...";
Expand Down
6 changes: 6 additions & 0 deletions source/compose.manager/php/compose_manager_main.php
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -333,6 +333,12 @@ function initStackListUI() {
$('#compose_stacks').removeClass('cm-advanced-view');
}

// Seed expandedStacks from any rows rendered expanded server-side
$('.stack-details-row:visible').each(function() {
var stackId = this.id.replace('details-row-', '');
expandedStacks[stackId] = true;
});

// Load saved update status after list is loaded
loadSavedUpdateStatus();
}
Expand Down
Loading