Code Monkey home page Code Monkey logo

Comments (5)

Leano1998 avatar Leano1998 commented on September 15, 2024

I retested this issue in the sandbox and found, that if you hit save on the itempage as well, it works for me. I did the following:

  1. Edit a publication, going to the "Relationships" tab
  2. Click "+Add" next to Authors and attempt to add a new Author
  3. Select a local author who is already in the system.
  4. Click "Save".
  5. Now, the popup hangs for me as well
  6. So, click elsewhere on the page (the popup will close)
  7. Click save on the top of the relationship page
  8. Reload the page -> The related entities are still there.

Still, I see the issue with the hanging popup window, which is not closing itself.

from dspace-angular.

tdonohue avatar tdonohue commented on September 15, 2024

Thanks @Leano1998 for the additional test! I think I realize where I went wrong. I forgot your step 7. I didn't go back and click "Save" at the top of the relationship page. I had assumed the "Save" button on the popup modal was the only button I had to click.

So, this is working. But the behavior of saving a new relationship is slightly confusing & the popup window never closes itself.

from dspace-angular.

Leano1998 avatar Leano1998 commented on September 15, 2024

I looked a bit into this and think it might be related to this older issue #1371
If I add the following line (which has been removed in this Commit), the window closes for me:

        setTimeout( () => {
          this.submit.emit();
          this.modalRef.close()
        },1000);

edit-relationship-list.component.ts (L352)

But I don't fully understand, why it has been removed.

from dspace-angular.

tdonohue avatar tdonohue commented on September 15, 2024

Thanks @Leano1998 for working to track that down. I don't know the answer to your question, but it seems like the code you referenced was removed in #1329 by @atarix83 . This seems to have been over 3 years ago now, so it may be difficult to track down why that change was made.

If you want to simply create a PR to add the fix that works for you, that may be the best approach. That way we can get some additional testers to ensure it also works for them.

from dspace-angular.

Leano1998 avatar Leano1998 commented on September 15, 2024

Okay, I can create a PR.

from dspace-angular.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.