Skip to content
Merged
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
7 changes: 6 additions & 1 deletion src/components/Albums/AlbumForm.vue
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@
methods: {
...mapActions(['createCollection', 'renameCollection', 'updateCollection']),

/** @param {import('../../store/albums.js').Collaborator[]} collaborators */

Check warning on line 200 in src/components/Albums/AlbumForm.vue

View workflow job for this annotation

GitHub Actions / NPM lint

Missing JSDoc @param "collaborators" description
submit(collaborators = []) {
if (!this.canSubmit) {
return
Expand All @@ -210,7 +210,7 @@
}
},

/** @param {import('../../store/albums.js').Collaborator[]} collaborators */

Check warning on line 213 in src/components/Albums/AlbumForm.vue

View workflow job for this annotation

GitHub Actions / NPM lint

Missing JSDoc @param "collaborators" description
async handleCreateAlbum(collaborators = []) {
try {
this.loading = true
Expand Down Expand Up @@ -256,6 +256,10 @@

if (this.album.basename !== this.albumName) {
album = await this.renameCollection({ collectionFileName: this.album.filename, newBaseName: this.albumName })

if (album === this.album) {
return // Abort, and do not close the form if renaming failed
}
}

if (this.album.location !== this.albumLocation) {
Expand Down Expand Up @@ -303,7 +307,8 @@
justify-content: space-between;
flex-direction: column;

.left-buttons, .right-buttons {
.left-buttons,
.right-buttons {
display: flex;
gap: calc(var(--default-grid-baseline) * 4);
}
Expand Down
Loading