]> source.dussan.org Git - nextcloud-server.git/commitdiff
Fix quota text not updated when no quota is set
authorDaniel Calviño Sánchez <danxuliu@gmail.com>
Thu, 23 Jun 2022 11:24:35 +0000 (13:24 +0200)
committerbackportbot-nextcloud[bot] <backportbot-nextcloud[bot]@users.noreply.github.com>
Tue, 5 Jul 2022 20:25:44 +0000 (20:25 +0000)
The JavaScript code that updates the quota text expects the element to
have "quotatext" as id.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
apps/files/templates/appnavigation.php

index 0bfdc6f0b5440dec60620fe64568a3eae036aea2..9aea68fef99b017ed5f6f1640c3503c153d0eb2f 100644 (file)
@@ -12,7 +12,7 @@
                <?php if ($_['quota'] === \OCP\Files\FileInfo::SPACE_UNLIMITED): ?>
                        <li id="quota" class="pinned <?php p($pinned === 0 ? 'first-pinned ' : '') ?>">
                                <a href="#" class="icon-quota svg">
-                                       <p><?php p($l->t('%s used', [$_['usage']])); ?></p>
+                                       <p id="quotatext"><?php p($l->t('%s used', [$_['usage']])); ?></p>
                                </a>
                        </li>
                <?php else: ?>