Changed album close behavior so album can be closed when visiting URL directly.

This commit is contained in:
DebaucheryLibrarian 2021-03-07 16:54:20 +01:00
parent a275d0c855
commit de460f53b1
4 changed files with 10 additions and 3 deletions

View File

@ -327,7 +327,7 @@
:title="actor.name" :title="actor.name"
:portrait="true" :portrait="true"
:comments="true" :comments="true"
@close="$router.go(-1)" @close="$router.replace({ hash: undefined })"
/> />
<div class="actor-content"> <div class="actor-content">

View File

@ -30,7 +30,7 @@
:items="[release.poster, ...release.photos]" :items="[release.poster, ...release.photos]"
:title="release.title" :title="release.title"
:path="config.media.mediaPath" :path="config.media.mediaPath"
@close="$router.go(-1)" @close="$router.replace({ hash: undefined })"
/> />
<div class="info column"> <div class="info column">

View File

@ -41,7 +41,7 @@
:title="tag.name" :title="tag.name"
:local="true" :local="true"
class="portrait" class="portrait"
@close="$router.go(-1)" @close="$router.replace({ hash: undefined })"
/> />
<FilterBar <FilterBar

View File

@ -5,6 +5,7 @@ const log = require('why-is-node-running');
const argv = require('./argv'); const argv = require('./argv');
const initServer = require('./web/server'); const initServer = require('./web/server');
const http = require('./utils/http');
const knex = require('./knex'); const knex = require('./knex');
const fetchUpdates = require('./updates'); const fetchUpdates = require('./updates');
@ -79,6 +80,12 @@ async function init() {
await flushOrphanedMedia(); await flushOrphanedMedia();
} }
if (argv.request) {
const res = await http.get(argv.request);
console.log(res.status, res.body);
}
const actorsFromFile = argv.actorsFile && await getFileEntries(argv.actorsFile); const actorsFromFile = argv.actorsFile && await getFileEntries(argv.actorsFile);
const actorNames = (argv.actors || []).concat(actorsFromFile || []); const actorNames = (argv.actors || []).concat(actorsFromFile || []);