Reserving campaign space on actor, entity and tag pages.

This commit is contained in:
DebaucheryLibrarian 2023-07-06 00:42:12 +02:00
parent 717f07a09a
commit b0c0b1a792
4 changed files with 9 additions and 4 deletions

View File

@ -391,6 +391,8 @@
</template> </template>
<script> <script>
import config from 'config';
import Pagination from '../pagination/pagination.vue'; import Pagination from '../pagination/pagination.vue';
import FilterBar from '../filters/filter-bar.vue'; import FilterBar from '../filters/filter-bar.vue';
import Releases from '../releases/releases.vue'; import Releases from '../releases/releases.vue';
@ -482,7 +484,7 @@ export default {
releases: null, releases: null,
done: false, done: false,
totalCount: 0, totalCount: 0,
limit: 20, limit: Number(this.$route.query.limit || 30) - config.campaigns.tiles, // reserve one campaign spot
pageTitle: null, pageTitle: null,
bioExpanded: false, bioExpanded: false,
photosExpanded: false, photosExpanded: false,

View File

@ -134,6 +134,8 @@
</template> </template>
<script> <script>
import config from 'config';
import FilterBar from '../filters/filter-bar.vue'; import FilterBar from '../filters/filter-bar.vue';
import Pagination from '../pagination/pagination.vue'; import Pagination from '../pagination/pagination.vue';
import Releases from '../releases/releases.vue'; import Releases from '../releases/releases.vue';
@ -205,7 +207,7 @@ export default {
pageTitle: null, pageTitle: null,
totalCount: null, totalCount: null,
done: false, done: false,
limit: Number(this.$route.query.limit) || 20, limit: Number(this.$route.query.limit || 30) - config.campaigns.tiles, // reserve one campaign spot
expanded: false, expanded: false,
entityUrl: null, entityUrl: null,
}; };

View File

@ -81,7 +81,7 @@ export default {
releases: [], releases: [],
networks: [], networks: [],
pageTitle: null, pageTitle: null,
limit: 30 - config.campaigns.tiles, // reserve one campaign spot limit: Number(this.$route.query.limit || 30) - config.campaigns.tiles, // reserve one campaign spot
totalCount: 0, totalCount: 0,
from: null, from: null,
done: false, done: false,

View File

@ -81,6 +81,7 @@
</template> </template>
<script> <script>
import config from 'config';
import { Converter } from 'showdown'; import { Converter } from 'showdown';
import escapeHtml from '../../../src/utils/escape-html'; import escapeHtml from '../../../src/utils/escape-html';
@ -155,7 +156,7 @@ export default {
releases: null, releases: null,
done: false, done: false,
totalCount: 0, totalCount: 0,
limit: 20, limit: Number(this.$route.query.limit || 30) - config.campaigns.tiles, // reserve one campaign spot
pageTitle: null, pageTitle: null,
hasMedia: false, hasMedia: false,
expanded: false, expanded: false,