Skip to content

Commit

Permalink
fix: Migrate to new Entry API
Browse files Browse the repository at this point in the history
Signed-off-by: Christopher Ng <chrng8@gmail.com>
  • Loading branch information
Pytal committed Jan 30, 2024
1 parent bb79f5a commit 0d59fd4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion cypress/e2e/albumsUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ export function addFilesToAlbumFromAlbum(albumName: string, itemsIndex: number[]
}

export function addFilesToAlbumFromAlbumFromHeader(albumName: string, itemsIndex: number[]) {
cy.contains('Add').click()
cy.contains('New').click()
cy.intercept({ times: 1, method: 'SEARCH', url: '**/dav/' }).as('search')
cy.contains('Add photos to this album').click()
cy.wait('@search')
Expand Down
3 changes: 1 addition & 2 deletions src/views/AlbumContent.vue
Original file line number Diff line number Diff line change
Expand Up @@ -258,8 +258,7 @@ export default {
newFileMenuEntry: {
id: 'album-add',
displayName: t('photos', 'Add photos to this album'),
templateName: '',
if: (context) => context.route === this.$route.name,
enabled: (destination) => destination === this.$route.params.albumName,
/** Existing icon css class */
iconSvgInline: PlusSvg,
/** Function to be run after creation */
Expand Down

0 comments on commit 0d59fd4

Please sign in to comment.