Azure / api-management-developer-portal

Developer portal provided by the Azure API Management service.
MIT License
486 stars 312 forks source link

Knockout Modal Fails on Static Storage because of URL Rewrite? #539

Closed TravisLRiffle closed 3 years ago

TravisLRiffle commented 4 years ago

I didn't see many examples of how to edit items so I attempted to do an edit with a knockout modal in my custom widget. This worked great locally; however, behind the scenes the modal is doing SOMETHING that causes a hash to appear in the URL. This is a problem when following your static website instructions because the URL rewrite fails and the modal doesn't launch. From what I've read, you can't have URL rewrites in a storage account. This leaves me with the following questions.

azaslonov commented 4 years ago

Hi Travis, sorry, but I'll need to clarify a few things:

It would also help to understand the whole scenario you're trying to implement. Can you please describe it in more details?

TravisLRiffle commented 4 years ago

Sorry if my message didn't make sense. I wrote it in haste! If you have a list of items and let's say you want an edit screen, how would you go about doing that? With another screen? With a modal?

When I say knockout modals, I meant bootstrap so I apologize.

Yes I'm talking about the changing of the hash seems to be breaking the bootstrap modal.

On Wed, Mar 11, 2020 at 2:27 PM Alexander Zaslonov notifications@github.com wrote:

Hi Travis, sorry, but I'll need to clarify a few things:

  • Can you please give more details about "examples of how to edit items". What items you're talking about?
  • What do you call Knockout Modals?
  • When you say "URL rewrite", you're talking about just changing hash or webserver-level rewrite?

It would also help to understand the whole scenario you're trying to implement. Can you please describe it in more details?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/Azure/api-management-developer-portal/issues/539#issuecomment-597824180, or unsubscribe https://github.com/notifications/unsubscribe-auth/AIH3OMVI3S5ZUWNEVV6C7FDRG7QYVANCNFSM4LF45AEA .

azaslonov commented 4 years ago

Hi Travis, Sorry, but I still don't fully understand the question. Since you're asking about modals, I assume you're not talking about design experience, - you are trying to implement some kind of list-like widget that would work in runtime (published portal) and invoke a dialog for editing items of that list. Am I right?

azaslonov commented 4 years ago

Hi @TravisLRiffle, could you please answer the question above?

TravisLRiffle commented 4 years ago

That is correct. Or if not, be given an example of how you'd recommend editing an item in a list in this regard. I do not see an example and the bootstrap dialog does not work with the framework, etc.

mikebudzynski commented 4 years ago

@TravisLRiffle can you please clarify your question and give a specific example? It would be great if you could share screenshots or a video.

azaslonov commented 3 years ago

Closing due to inactivity.