Skip to content
  • Fabian Köninger's avatar
    #129 add previous and next button in the detail view of a dataset · 7937ed87
    Fabian Köninger authored and Tobias Fischer's avatar Tobias Fischer committed
    
    
     - introduce GET /datasets/_views/id_only/paginated
     - for navigation to previous/next dataset load current dataset per id and load ids of previous and next dataset
     - compute currentPage based on currentPosition and after assigning the new position in order to compute the correct page
     - per default go back to page 0 of the datasets overview after editing a dataset that was directly accessed by id
     - disable previous and next button for last and first dataset
     - load initial dataset per id and add position to url for navigation to next and previous dataset
     - before reloading dataset push url to routeHistory to preserve navigation behaviour
    
    Co-authored-by: default avatarMarkus Deppner <m.deppner@goldflam.de>
    
    Co-authored-by: default avatarAndre Goldflam <a.goldflam@goldflam.de>
    7937ed87